Skip to content

Commit d13ca87

Browse files
improve docs
1 parent 69b1289 commit d13ca87

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

docs/getting-started-guide/01_Setup_and_connect_to_Server.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ app = VideoIPathApp()
5252

5353
# Example: Get the server version
5454
print(app.get_server_version())
55-
# > 2024.1.4
55+
# > 2024.4.30
5656
```
5757

5858
## Example 2: Establishing a Connection to the VideoIPath Server via parameters
@@ -66,7 +66,7 @@ app = VideoIPathApp(server_address="10.1.100.10", username="api-user", password=
6666

6767
# Example: Get the server version
6868
print(app.get_server_version())
69-
# > 2024.1.4
69+
# > 2024.4.30
7070
```
7171

7272
## Additional Information
@@ -79,7 +79,7 @@ print(app.get_server_version())
7979
- `use_https`: Set to `True` if the VideoIPath Server uses HTTPS.
8080
- `verify_ssl_cert`: Set to `True` if the SSL certificate should be verified.
8181
- `log_level`: The log level for the logging module, possible values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, and `CRITICAL`. If not set as a parameter or environment variable, it falls back to the root logger's level (default is set to `WARNING`).
82-
- `environment`: The environment of the VideoIPath Server, possible values are `DEV`, `TEST`, and `PROD` (for future use)
82+
- `environment`: The environment of the VideoIPath Server, possible values are `DEV` and `PROD` (for future use)
8383
- `advanced_driver_schema_check`: If set to `True`, the local driver schema is checked against the server's driver schema (custom settings fields).
8484
- `timeout_http_get`: Optional. Timeout in seconds for HTTP GET requests. Default is `10`.
8585
- `timeout_http_patch`: Optional. Timeout in seconds for HTTP PATCH requests. Default is `10`.
@@ -89,7 +89,7 @@ print(app.get_server_version())
8989

9090
| Variable | Values | Description |
9191
|-----------------|-------------------------------------------------|--------------------------------------------------|
92-
| `VIPAT_ENVIRONMENT` | `DEV`, `TEST`, `PROD` | Optional: Define the environment. Defaults to `PROD`. |
92+
| `VIPAT_ENVIRONMENT` | `DEV`, `PROD` | Optional: Define the environment. Defaults to `PROD`. |
9393
| `VIPAT_VIDEOIPATH_SERVER_ADDRESS` | e.g. IP `10.200.10.21` or hostname `vip.company.com` | IP address or hostname of the VideoIPath server. |
9494
| `VIPAT_VIDEOIPATH_USERNAME` | e.g. `api_user` | Username for the API User. |
9595
| `VIPAT_VIDEOIPATH_PASSWORD` | e.g. `very_strong_passw0rd` | Password for the API User. |

docs/getting-started-guide/02_Inventory.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ File content:
309309
In this example the configuration was changed in the GUI after the backup was made.
310310

311311
```python
312+
from videoipath_automation_tool.apps.inventory.model import InventoryDevice
313+
312314
with open("gtw_31_config.json", "r") as file:
313315
gtw_31_config = json.load(file)
314316

@@ -382,7 +384,7 @@ print(f"Device '{duplicated_device.configuration.label}' with id '{duplicated_de
382384
# > Device 'Hello World' with id 'device1' duplicated in Inventory!")
383385
```
384386

385-
#### 2.4.1 Clone a device
387+
#### 2.4.2 Clone a device on the same VideoIPath instance
386388

387389
```python
388390
# Get the device with the user defined label "Hello World" from the inventory

docs/getting-started-guide/03_Topology.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ A device can be removed from the topology using its device ID.
7676
app.topology.remove_device_by_id(device_id="device10")
7777
```
7878

79-
### 3. Accessing Vertices and Edges
79+
## 3. Working with Vertices and Edges
8080

8181
It is possible to either iterate through all vertices/edges of a category, which is often useful for bulk operations, or access individual vertices/edges directly by their ID or label.
8282

@@ -123,9 +123,9 @@ print(vertice_video_ip_in_1_1.id)
123123
# > device80.1.3000000
124124
```
125125

126-
### 3.2. Example: Configure existing Edges/Vertices
126+
### 3.4. Example: Configure existing Edges/Vertices
127127

128-
#### 3.2.1. Configure Codec Vertices based on information from factory labels
128+
#### 3.4.1. Configure Codec Vertices based on information from factory labels
129129

130130
```python
131131
device = app.topology.get_device(device_id="device80")
@@ -177,7 +177,7 @@ More examples will be added soon!
177177

178178
---
179179

180-
## 3.3. Createing external Edges between devices
180+
### 3.5. Creating external Edges between devices
181181

182182
```python
183183
virtuoso_device_id = "device80"
@@ -188,7 +188,7 @@ spine_blue_device_id = "device1"
188188
edges_red_slot_1 = app.topology.create_edges(
189189
device_1_id=virtuoso_device_id,
190190
device_1_vertex_factory_label="Ethernet 1.3",
191-
device_2_id=spine_red,
191+
device_2_id=spine_red_device_id,
192192
device_2_vertex_factory_label="Ethernet29",
193193
bandwidth=10000,
194194
bandwidth_factor=0.9,
@@ -197,7 +197,7 @@ edges_red_slot_1 = app.topology.create_edges(
197197
edges_blue_slot_1 = app.topology.create_edges(
198198
device_1_id=virtuoso_device_id,
199199
device_1_vertex_factory_label="Ethernet 1.4",
200-
device_2_id=spine_blue,
200+
device_2_id=spine_blue_device_id,
201201
device_2_vertex_factory_label="Ethernet29",
202202
bandwidth=10000,
203203
bandwidth_factor=0.9,
@@ -218,4 +218,4 @@ virtuoso_topology.configuration.external_edges.extend(edges_blue_slot_1)
218218
app.topology.update_device(device=virtuoso_topology)
219219
```
220220

221-
## The documentation is currently being expanded. Upcoming sections will include details on device positioning, virtual device management, and device comparison, as well as synchronization status and various helper functions
221+
> **Note:** The documentation is currently being expanded. Upcoming sections will include details on device positioning, virtual device management, and device comparison, as well as synchronization status and various helper functions.

docs/getting-started-guide/04_Multicast_Pools.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# System Preferences: Multicast Pools
22

3-
## Tipp: Define a variable for the allocation_pools_config for easier access
3+
## Tip: Define a variable for the allocation_pools_config for easier access
44

55
```python
66
allocation_pools_config = app.preferences.system_configuration.allocation_pools
@@ -54,7 +54,7 @@ available_ranges=['A', 'B', 'default']
5454
id='B' vid='B' ranges=[Range(startip=IPv4Address('234.0.0.0'), endip=IPv4Address('234.255.255.254')), Range(startip=IPv4Address('236.0.0.1'), endip=IPv4Address('236.0.0.2'))] utilization=Utilization(percentage=0, total=16777215, used=0)
5555
```
5656

57-
# Code Example 4: Remove a range from a pool
57+
## Code Example 4: Remove a range from a pool
5858

5959
```python
6060
b_range = allocation_pools_config.get_multicast_range_by_name("B")
@@ -75,18 +75,18 @@ After Removal:
7575
available_ranges=['A', 'B', 'default']
7676
```
7777

78-
# Code Example 5: Delete a pool
78+
## Code Example 5: Delete a pool
7979

8080
```python
8181
# Can be done either by range name or the range object itself
8282
allocation_pools_config.remove_multicast_range("B")
8383
```
8484

85-
# Code Example 6: Use Information to validate a vertex configuration
85+
## Code Example 6: Use Information to validate a vertex configuration
8686

8787
```python
8888
# The implementation of Inspect-Topology GUI allows to set invalid multicast pools.
89-
# => Tipp: Use Information to validate a vertex configuration
89+
# => Tip: Use Information to validate a vertex configuration
9090
from videoipath_automation_tool.apps.topology.model.n_graph_elements.topology_codec_vertex import nPoolId
9191

9292
allocation_pools_config = app.preferences.system_configuration.allocation_pools

docs/getting-started-guide/05_Profile.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Getting Started Guide
22

3-
This guide will help you get started with the VideoIPath Automation Tool. It will show you how to establish a connection to the VideoIPath server and how to manage devices in the inventory and topology. Also, it demonstrates how to configure multicast pools and profiles.
3+
This guide will help you get started with the VideoIPath Automation Tool. It will show you how to establish a connection to the VideoIPath server and how to manage devices in the inventory and topology. Also, it demonstrates how to configure multicast pools.
44

55
## Table of Contents
66

77
1. [Establishing a Connection to the VideoIPath Server](01_Setup_and_connect_to_Server.md)
88
2. [Managing Devices in the Inventory](02_Inventory.md)
99
3. [Managing Devices in the Topology](03_Topology.md)
1010
4. [Configuring Multicast Pools](04_Multicast_Pools.md)
11-
5. [Configuring Profiles](05_Profile.md)

0 commit comments

Comments
 (0)