@@ -13,7 +13,7 @@ This script will clone a copy of the `netbox-community/devicetype-library` repos
13
13
1 . This script is written in Python, so lets setup a virtual environment.
14
14
15
15
```
16
- git clone https://github.com/minitriga/Netbox- Device-Type-Library-Import
16
+ git clone https://github.com/netbox-community/ Device-Type-Library-Import.git
17
17
cd Netbox-Device-Type-Library-Import
18
18
python3 -m venv venv
19
19
source venv/bin/activate
@@ -58,17 +58,17 @@ To import only device by APC, for example:
58
58
./nb-dt-import.py --vendors apc
59
59
```
60
60
61
- ` --vendors ` can also accept a comma separated list of vendors if you want to import multiple.
61
+ ` --vendors ` can also accept a comma separated list of vendors if you want to import multiple.
62
62
63
63
```
64
64
./nb-dt-import.py --vendors apc,juniper
65
65
```
66
66
67
67
## Docker build
68
68
69
- It's possible to use this project as a docker container.
69
+ It's possible to use this project as a docker container.
70
70
71
- To build :
71
+ To build :
72
72
73
73
```
74
74
docker build -t netbox-devicetype-import-library .
@@ -80,15 +80,15 @@ Alternatively you can pull a pre-built image from Github Container Registry (ghc
80
80
docker pull ghcr.io/minitriga/netbox-device-type-library-import
81
81
```
82
82
83
- The container supports the following env var as configuration :
83
+ The container supports the following env var as configuration :
84
84
85
85
- ` REPO_URL ` , the repo to look for device types (defaults to _ https://github.com/netbox-community/devicetype-library.git _ )
86
86
- ` REPO_BRANCH ` , the branch to check out if appropriate, defaults to master.
87
87
- ` NETBOX_URL ` , used to access netbox
88
88
- ` NETBOX_TOKEN ` , token for accessing netbox
89
89
- ` VENDORS ` , a comma-separated list of vendors to import (defaults to None)
90
90
91
- To run :
91
+ To run :
92
92
93
93
```
94
94
docker run -e "NETBOX_URL=http://netbox:8080/" -e "NETBOX_TOKEN=98765434567890" ghcr.io/minitriga/netbox-device-type-library-import
0 commit comments