This repo is a derivative of the full CI/CD Pipeline described in the sdwan-devops aimed just at daily operational tasks. It is based on the Cisco SD-WAN Ansible Modules.
The repository contains the Cisco SD-WAN Ansible Modules as a submodule. To clone the repo with the submodule:
git clone --recursive https:github.com/ciscodevnet/sdwan-ops
- ansible
- requests
pip install -r requirements.txt
The following playbooks will export both templates and policy from vmanage in there entirety into a JSON file. In addition, they will import both templates and policy from a JSON file into vmanage, adding only the templates and/or policy that is not already present (i.e. idempotent)
Extra Vars:
vmanage_host
: The IP address or DNS name of vmanagevmanage_user
: User with adminsitrator privileges on vmanagevmanage_password
: Password for the user specifiedfile
: the name of the file to either export to or import from.
ansible-playbook export-templates.yml -e vmanage_host=192.133.178.182 -e vmanage_user=admin -e vmanage_password=admin
ansible-playbook export-policy.yml -e vmanage_host=192.133.178.182 -e vmanage_user=admin -e vmanage_password=admin
ansible-playbook import-templates.yml -e vmanage_host=192.133.178.182 -e vmanage_user=admin -e vmanage_password=admin
ansible-playbook import-policy.yml -e vmanage_host=192.133.178.182 -e vmanage_user=admin -e vmanage_password=admin