You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bulk_config/README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# bulk_config.py
2
2
3
-
Bulk configure devices in NCM from router_grid.csv file using column headers.
3
+
Bulk configure devices in NCM from router_grid.csv file using column headers. Also sets custom1 and custom2 fields when values are provided in the CSV.
4
4
5
5
## Setup
6
6
@@ -23,9 +23,13 @@ Bulk configure devices in NCM from router_grid.csv file using column headers.
23
23
python bulk_config.py
24
24
```
25
25
26
+
## Custom Fields
27
+
28
+
The script automatically sets custom1 and custom2 fields for each router when these columns are present in the CSV and contain non-empty values. Simply add `custom1` and/or `custom2` columns to your router_grid.csv file.
29
+
26
30
## Example
27
31
28
-
For the included router_grid.csv with columns `id`, `name`, `desc`, `asset_id`, `primary_lan_ip`, `2ghz_ssid`, `5ghz_ssid`:
32
+
For the included router_grid.csv with columns `id`, `name`, `desc`, `asset_id`, `primary_lan_ip`, `2ghz_ssid`, `5ghz_ssid`, `custom1`, `custom2`:
29
33
30
34
```python
31
35
"system": {
@@ -58,6 +62,14 @@ For the included router_grid.csv with columns `id`, `name`, `desc`, `asset_id`,
0 commit comments