Skip to main content

NSO NED device configuration to OpenConfig

This python package will read in a json configuration for a device and translate to OpenConfig

Usage

  1. 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
    
  2. Execute script
    python3 main.py
    
  3. 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

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)

Source distribution for nso-oc 2.82.1
File Size Uploaded
nso-oc-2.82.1.tar.gz 85.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nso-oc 2.82.1
File Interpreter ABI Platform
nso_oc-2.82.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.82.1 This release

2 release files

2.79.4

2 release files

2.79.3

2 release files

2.79.2

2 release files

2.79.1

2 release files

2.79.0

2 release files

2.78.0

2 release files

2.77.0

2 release files

2.75.0

2 release files

2.74.0

2 release files

2.73.0

2 release files

2.72.0

2 release files

2.71.0

2 release files

2.70.0

2 release files

2.54.0

2 release files

2.53.0

2 release files

2.52.0

2 release files

2.51.0

2 release files

2.50.3

2 release files

2.50.2

2 release files

2.50.1

2 release files

2.50.0

2 release files

2.49.0

2 release files

2.46.2

2 release files

2.46.0

2 release files

2.45.0

2 release files

2.44.0

2 release files

2.43.2

2 release files

2.43.1

2 release files

2.43.0

2 release files

2.42.0

2 release files

2.40.1

2 release files

2.40.0

2 release files

2.39.0

2 release files

2.38.0

2 release files

2.37.0

2 release files

2.36.0

2 release files

2.35.9

2 release files

2.35.8

2 release files

2.35.7

2 release files

2.35.6

2 release files

2.35.5

2 release files

2.35.4

2 release files

2.35.3

2 release files

2.34.1

2 release files

2.34.0

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page