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
- 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
- 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
- The idea is $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-0.0.3.dev0.tar.gz
(62.9 kB
view hashes)
Built Distribution
Close
Hashes for nso_oc-0.0.3.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d646fc43143cca8bdadf4193d0f7e02b86d9e1dadbbc8fb8d1fe918f56a3a7c0 |
|
MD5 | 94d47ad10b397b8e2ccbc43a0b83bddd |
|
BLAKE2b-256 | ac58d63322113523b54cf5c9f271e8368fb59be467332a6680e3949572c5bad4 |