This public repo contains python code that can be used to interact with the Cisco SD-WAN vManage REST API
. The environment is pre-configured to access the Cisco DevNet Reservable Sandbox for SD-WAN fabric.You can edit the variables in the environment to point to your own vManage instance. The code contains REST API calls to authenticate, get a list of devices that are part of the SD-WAN fabric. Cisco SD-WAN vManage 19.2.2.
- How to use vManage APIs -
- Monitor Application Aware Routing statistics (BFD statistics) for Overlay Tunnels
- Create new SLA class list, Application Aware Routing policy and update active vSmart policy
- Delete SLA class list and Application Aware Routing policy
To use this code you will need:
- Python 3.7+
- vManage user login details. (User should have privilege level to configure policies)
- Clone the code to local machine.
git clone https://github.com/ciscodevnet/sdwan-application-route-policy.git
cd sdwan-app-route-policy
- Setup Python Virtual Environment (requires Python 3.7+)
python3.7 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
- A YAML file with the Cisco SD-WAN Sandbox has been created vmanage_login.yaml You can edit the variables in the environment to point to your own vManage instance.