Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.18 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.18 KB

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