Skip to content

Simple NETCONF/YANG example for how to get started using NETCONF/YANG for network configuration.

Notifications You must be signed in to change notification settings

hpreston/netconf_yang_blog

Repository files navigation

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

About

Simple NETCONF/YANG example for how to get started using NETCONF/YANG for network configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages