mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2024-11-21 23:23:17 +01:00
Merge pull request #41 from byts-tech/Fix--Issue-#34
Fixes #34: Change Vendor Delimiter
This commit is contained in:
commit
8f3a4b4fdf
@ -58,10 +58,10 @@ To import only device by APC, for example:
|
||||
./nb-dt-import.py --vendors apc
|
||||
```
|
||||
|
||||
`--vendors` can also accept a space separated list of vendors if you want to import multiple.
|
||||
`--vendors` can also accept a comma separated list of vendors if you want to import multiple.
|
||||
|
||||
```
|
||||
./nb-dt-import.py --vendors apc juniper
|
||||
./nb-dt-import.py --vendors apc,juniper
|
||||
```
|
||||
|
||||
## Docker build
|
||||
@ -80,7 +80,7 @@ The container supports the following env var as configuration :
|
||||
- `REPO_BRANCH`, the branch to check out if appropriate, defaults to master.
|
||||
- `NETBOX_URL`, used to access netbox
|
||||
- `NETBOX_TOKEN`, token for accessing netbox
|
||||
- `VENDORS`, a space-separated list of vendors to import (defaults to None)
|
||||
- `VENDORS`, a comma-separated list of vendors to import (defaults to None)
|
||||
|
||||
To run :
|
||||
|
||||
|
@ -9,7 +9,7 @@ NETBOX_TOKEN = os.getenv("NETBOX_TOKEN")
|
||||
IGNORE_SSL_ERRORS = (os.getenv("IGNORE_SSL_ERRORS", "False") == "True")
|
||||
|
||||
# optionnally load vendors through a space separated list as env var
|
||||
VENDORS = os.getenv("VENDORS", "").split()
|
||||
VENDORS = os.getenv("VENDORS", "").split(",")
|
||||
|
||||
# optionally load device types through a space separated list as env var
|
||||
SLUGS = os.getenv("SLUGS", "").split()
|
||||
|
Loading…
Reference in New Issue
Block a user