
bubo
Example using the both the pyATS SSH CLI parsers and pyATS REST Connector with IOS-XE / NXOS OpenConfig YANG Model for test-driven development
Ready to go with the Cisco DevNet Sandbox Always on IOS-XE platform
https://devnetsandbox.cisco.com/RM/Diagram/Index/7b4d4209-a17c-4bc3-9b38-f15184e53a94?diagramType=Topology
Enable RESTCONF
Make sure to enable RESTCONF
switch> enable
switch# conf t
switch(conf)# ip http secure-server
switch(conf)# restconf
Installation
Create a virtual environment
$ python3 -m venv REST_Connector
$ source /REST_Connector/bin/activate
(REST_Connector) $
Clone the repository
(REST_Connector) $ git clone https://github.com/automateyournetwork/bubo/
(REST_Connector) $ cd bubo
Install the required packages
(REST_Connector) ~/bubo$ pip install pyats[full]
(REST_Connector) ~/bubo$ pip install tabulate
(REST_Connector) ~/bubo$ pip install rest.connector
Run the code - using RESTCONF
(REST_Connector) ~/bubo$
(REST_Connector) ~/bubo$ pyats run job bubo_REST.py
Run the code - using SSH
(REST_Connector) ~/bubo$
(REST_Connector) ~/bubo$ pyats run job bubo_SSH.py
Use Case
bubo - a pyATS Starter Kit
Get Started with Test-Driven Automation
bubo is a pyATS test-driven automation starter kit for people who want to start using pyATS and testing for their network automation needs.
This example uses both the pyATS SSH CLI parsers and pyATS REST Connector with IOS-XE / NXOS OpenConfig YANG Model and works with the DevNet Sandbox Always-On IOS-XE device.
Blog
Test-Driven Automation Blog
Related Sandbox
Provide a link to a related DevNet Sandbox:
IOS XE on CSR Latest Code Always On Sandbox