# sdwan-policy-automation **Repository Path**: mirrors_CiscoDevNet/sdwan-policy-automation ## Basic Information - **Project Name**: sdwan-policy-automation - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/sdwan-policy-automation) # vManage APIs for Application Aware Routing Policies 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](https://devnetsandbox.cisco.com/RM/Diagram/Index/c9679e49-6751-4f43-9bb4-9d7ee162b069?diagramType=Topology) fabric.You can edit the variables in the environment to point to your own vManage instance. The code contains REST API calls to authenticate, modify preferred color in Application Aware Routing policy. Cisco SD-WAN vManage 19.2.2. ![Sandbox Image](./images/sdwan_sandbox.png) # Objective * How to use vManage APIs to edit Application Aware Routing Policy. # Requirements To use this code you will need: * Python 3.7+ * vManage user login details. (User should have privilege level to configure policies) # Install and Setup - Clone the code to local machine. ``` git clone https://github.com/ciscodevnet/sdwan-policy-automation.git cd sdwan-policy-automation ``` - Setup Python Virtual Environment (requires Python 3.7+) ``` python3.7 -m venv venv source venv/bin/activate pip3 install -r requirements.txt ``` - YAML file **vmanage_login.yaml** with the Cisco SD-WAN Sandbox has been created You can edit the variables in the environment to point to your own vManage instance. ## Example: ![Yaml](./images/vmanage_login.png) - To modify the preferred color in Application Aware Routing policy, run the script using command `python modify-app-policy-color.py` on macOS/Ubuntu env or `py -3.7 modify-app-policy-color.py` on windows env - Possible input values for the new transport color are as below ``` 3g biz-internet blue bronze custom1 custom2 custom3 gold green lte metro-ethernet mpls private1 private2 private3 private4 private5 private6 public-internet red silver ``` - Input value for the App route policy name is `Outlook-AAR-Policy` if you are using the DevNet SD-WAN 19.2 Reserve Sandbox ## Sample Outputs ![AppOutput](./images/output.png)