Skip to main content

Cisco NSO OpenConfig Tools

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nso-oc-2.82.1.tar.gz (85.9 kB view details)

Uploaded Source

Built Distribution

nso_oc-2.82.1-py3-none-any.whl (99.7 kB view details)

Uploaded Python 3

File details

Details for the file nso-oc-2.82.1.tar.gz.

File metadata

  • Download URL: nso-oc-2.82.1.tar.gz
  • Upload date:
  • Size: 85.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for nso-oc-2.82.1.tar.gz
Algorithm Hash digest
SHA256 a286766736b1b3636d6a2d62456b9ac4a75a565643152fc2754c0a153c1367b7
MD5 0cec98e35cd6c8b39bc1ee1cb72061b0
BLAKE2b-256 44b41fcc221f9c44d37817973bf136070ea9d2a3e3412710beba1379468101e0

See more details on using hashes here.

File details

Details for the file nso_oc-2.82.1-py3-none-any.whl.

File metadata

  • Download URL: nso_oc-2.82.1-py3-none-any.whl
  • Upload date:
  • Size: 99.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for nso_oc-2.82.1-py3-none-any.whl
Algorithm Hash digest
SHA256 954b053db1d3ad07f5e9ff4b60a37e4f48dbc4043c618e80b5cd1e4a6e59d80f
MD5 83bb5761a739676e7d2dffcec32db152
BLAKE2b-256 7f89ed670e9f5209f6f33fc3eb8539366e19284ef064fede23dcaeffad8ce012

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page