Industrial NetDevOps is the combination of the tools and best practices from DevOps with network engineering and operations in industrial networks.
Instead of using SNMP and CLI, you configure, manage and monitor industrial network devices via standardized network device APIs and software automation tools. Industrial NetDevOps workflows use Open Source, standards and Python scripts alongside commercial devices and tools to deliver flexible and fast-responsive industrial networks.
This is a collection of scripts which will get you started on how NETCONF & RESTCONF works especially on Cisco IoT hardware. Also, some Ansible playbooks are here to get you started with Ansible.
For more information on how to use these scripts, definitely check out the learning labs at DevNet Learning Labs.
netconf-getting-started.py: Specifically created for the DevNet Learning Lab
netconf-IR1101.py
Get the lastest YANG model here: https://github.com/YangModels/yang/tree/master/vendor/cisco/xe (Version 17.x)
netconf-webexbot.py
You can also connect the configuration part with a Webex Teams bot to make it more interactive (ChatOps).
restconf-getting-started.py: Specifically created for the DevNet Learning Lab
Follow the Introduction to Ansible for IOS XE Configuration Management Learning Labs on how to apply the playbooks.
Here is an example architecture where your Industrial NetDevOps tools can be placed and used.
For more information on how to use these scripts, definitely check out the learning labs at DevNet Learning Labs.
git clone https://github.com/flopach/industrial-netdevops
Python 2
pip install virtualenv
python -m virtualenv venv_dir
Python 3
pip3 install virtualenv
python3 -m venv venv_dir
source venv_dir/bin/activate
pip install -r requirements.txt
pip3 install -r requirements.txt
Do not forget to enable NETCONF and/or RESTCONF on the device when using the APIs.
device(config)#netconf-yang
device(config)#restconf
11/2020: Updated NETCONF scripts and License
06/2020: Added RESTCONF, Ansible and Industrial NetDevOps Story
12/2019: Added 3 inital scripts
This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details
Owner
Contributors
Categories
CollaborationIoTNetworkingProducts
IOS XEIOxProgramming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community