Getting Started with Netconf/Yang/Python on a Cicso Catalyst 9300
I put together this quick reference guide for Netconf/Yang with Python for the Catalyst 9300. I assume this with work on the 3850 as well (have not tested it) Enable Netconf Yang on the device. !Create a user account with level 15 access username admin privilege 15 secret cisco123 !enable netconf-yang netconf-yang https://developer.cisco.com/docs/ios-xe/#!enabling-netconf-on-ios-xe/netconf Run examples. Requirement Python 3.6 Installing python dependencies: > pip3 install lxml ncclient Running script: (save as example.py) > python example.py -u <username> -p <password> --host <ip/hostname> --port 830 *I am testing these scripts from Linux* you can get all code in listed on github git clone https://github.com/caiena78/Netconf_Part1.git Get the config. import sys from argparse import ArgumentParser ...