Skip to content
These are added Code Script samples for Open NX-OS Learning Labs to the existing CiscoDevNet/nxos-code repository. https://github.com/CiscoDevNet/nxos-code
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
intro-nxapi
yang
.gitignore
LICENSE
README.md
requirements.txt

README.md

nxos-code-samples

These are added Code Script samples to the existing CiscoDevNet/nxos-code repository. https://github.com/CiscoDevNet/nxos-code for Open NX-OS Learning Labs.

The added script so far is the yang/02-yang/get_bgp_mode.py, it feteches the bgp router mode using the XML String as a NETFCONF Filter defined according to nxos_bgp.txt file that contains the yang model description.

(nxos) nxos-code/yang/02-yang$ python get_bgp_mode.py 
The BGP router mode for sbx-nxos-mgmt.cisco.com is fabric

You can’t perform that action at this time.