Viptela has a set of APIs which can be used to integrate its functionalities with other solutions. This Proof of Value demonstrates the use of vManage APIs to automate the activation and deactivation of a vSmart policy based on a preset time and date. This application fetches all vSmart policies already present in vmanage and helps users to schedule a policy activation/deactivation based on a pre-selected time. This helps in operation automation where in the IT staff can schedule a policy activation/deactivation when the staff is not around or has no access to vmanage dashboard.
- Abhijith R (abhr@cisco.com)
- Dec 2018
- Python 2.7
- APScheduler 3.5.3
- PyCharm/Any text editor
- Flask
- Download/clone the repository
- Import the code into a text editor like pycharm or Atom
- Install the required dependencies using requirements.txt
pip install -r requirements.txt
- Open controller.py file and make necessary changes as mentioned in the comment in the file
- After necessary changes are made to the code, execute controller.py file on the editor or on the terminal (
python controller.py
)
- vManage REST APIs
- [vSmart Policy API](https://sdwan-d