Skip to content
Simple NETCONF/YANG example for how to get started using NETCONF/YANG for network configuration.
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.
README.md
get_full_config.py
push_standard_config.py
requirements.txt
standard_config.xml

README.md

NETCONF/YANG Quick Example

This repository is a simple example of a couple Python scripts that can be used to retrieve and set configuration information from an IOS XE device. This code is provided to accompany a blog on the same topic.

You can execute these scripts yourself by reserving a DevNet Sandbox (completely free) and following these steps.

  1. Clone the code and change to the clone directory.

    git clone https://github.com/hpreston/netconf_yang_blog
    cd netconf_yang_blog 
  2. Connect to the sandbox VPN using the credentials sent to you through email.

  3. (recommended) Create and activate a Python virtual environment.

  4. Install the Python requirements.

    pip install -r requirements.txt
  5. Get the configuration.

    python get_full_config.py
  6. Send the configuration.

    python push_standard_config.py
You can’t perform that action at this time.