This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

published

Viptela vSmart policy Automation

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.

Author:


Prerequisites

  • Python 2.7
  • APScheduler 3.5.3
  • PyCharm/Any text editor
  • Flask

Steps to Reproduce

  • 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)

Screenshot

alt text

API Reference/Documentation:

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

View code on GitHub
  • Owner

  • Contributors

  • Categories

  • Programming Languages

    CSS
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.