NSO NED device configuration to OpenConfig
This python package will read in a json configuration for a device and translate to OpenConfig
Usage
- Decide whether pulling configuration from NSO or reading from file and set the appropriate envars
- For NSO
export NSO_URL="http://x.x.x.x:8080" export NSO_USERNAME=admin export NSO_PASSWORD=admin export NSO_DEVICE=router1 export DEVICE_OS=xe export TEST=False <- if True, the generated OC configuration is sent back to NSO export ACL_USE_EXISTING_SEQ=False <- if True, existing ACL sequence numbers will be used. Could cause remark errors- For a file (to be used if you've previously pulled the NSO configuration)
export NSO_NED_FILE="./device_configurations/$device_name/$device_name.json" export DEVICE_OS=xe - Execute script
python3 main.py - The below files will be placed in a new directory names "output_data"
- device_name.json = the full configuration is pulled from NSO
- device_name_notes.txt = notes resulting from converting NSO config to OpenConfig
- device_name_openconfig.json = New OpenConfig config
- device_name_remaining.json = Remaining configuration from NSO
Ideally device_name_openconfig.json + device_name_remaining.json = device_name.json
Metadata
Release files for nso-oc 2.82.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nso-oc-2.82.1.tar.gz | 85.9 kB | Without provenance | Details for nso-oc-2.82.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nso_oc-2.82.1-py3-none-any.whl | Python 3 | none | any | Details for nso_oc-2.82.1-py3-none-any.whl |
Total release size: 185.6 kB
Release files / nso-oc-2.82.1.tar.gz
| Download URL | nso-oc-2.82.1.tar.gz |
|---|---|
| Size | 85.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a286766736b1b3636d6a2d62456b9ac4a75a565643152fc2754c0a153c1367b7
|
|
BLAKE2b-256 checksum How to use checksums |
44b41fcc221f9c44d37817973bf136070ea9d2a3e3412710beba1379468101e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / nso_oc-2.82.1-py3-none-any.whl
| Download URL | nso_oc-2.82.1-py3-none-any.whl |
|---|---|
| Size | 99.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
954b053db1d3ad07f5e9ff4b60a37e4f48dbc4043c618e80b5cd1e4a6e59d80f
|
|
BLAKE2b-256 checksum How to use checksums |
7f89ed670e9f5209f6f33fc3eb8539366e19284ef064fede23dcaeffad8ce012
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for nso-oc 2.82.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.