/bubo

Example using the pyATS REST Connector with IOS-XE / NXOS OpenConfig YANG Model

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

bubo

Example using the pyATS REST Connector with IOS-XE / NXOS OpenConfig YANG Model

Ready to go with the Cisco DevNet Sandbox - CML Enterprise and the Always on IOS-XE platform

https://devnetsandbox.cisco.com/RM/Diagram/Index/45100600-b413-4471-b28e-b014eb824555?diagramType=Topology

https://devnetsandbox.cisco.com/RM/Diagram/Index/7b4d4209-a17c-4bc3-9b38-f15184e53a94?diagramType=Topology

Enable RESTCONF

On the CML IOS-XE Devices 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

(REST_Connector) ~/bubo$
(REST_Connector) ~/bubo$ pyats run job bubo.py