This collection of Ansible inventory and playbooks is designed to be used with the DevNet Learning Module Cisco SD-WAN Ansible Pipeline and the DevNet Multi-IOS Cisco Test Network sandbox. However, it can also be applied to any VIRL server that has the appropriate Cisco SD-WAN images installed.
Note: future development of the SDWAN DevOps code base has been moved to the sdwan-devops repo. There are many improvements there, including support for VIRL2/CML2 and VMware deployments.
Clone the repo. Note the use of the recursive switch. This is to make sure the necessary submodules get pulled down as well.
git clone --recursive https://github.com/CiscoDevNet/sd-wan-ansible-pipeline-code.git
Change into the sd-wan-ansible-pipeline-code directory.
cd sd-wan-ansible-pipeline-code
Install the required Python modules.
pip install -r requirements.txt
The Ansible inventory data included in this repo is designed to build and configure the following topology:
There are seven playbooks in this collection:
Build the topology.
ansible-playbook build.yml
Bring up the control plane and basic device connectivity.
ansible-playbook configure.yml
Import device/feature templates into vManage
ansible-playbook import-templates.yml
Attach device templates to devices.
ansible-playbook attach-template.yml
When you're done, cleanup.
ansible-playbook clean.yml
Ensure you are starting with clean directory and no simulation running.
ansible-playbook clean.yml
Copy a new viptela-workshop.yml file with the additional branch site into the inventory directory.
cp inventory_files/viptela-workshop-2branch.yml inventory/viptela-workshop.yml
Build the topology.
ansible-playbook build.yml
Bring up the control plane and basic device connectivity.
ansible-playbook configure.yml
Import device/feature templates into vManage
ansible-playbook import-templates.yml
Attach device templates to devices.
ansible-playbook attach-template.yml
Note: It can take some time for vEdges to register in vManage, trying to run the attach-template.yml playbook before the vEdge is registered in vManage will result in an error.
Copy a new network.yml file with an updated banner into the vedge1 directory.
cp inventory_files/vedge1_network.yml inventory/host_vars/vedge1/
Reattach the device template to vedge1
ansible-playbook attach-template.yml --limit=vedge1
virl nodes
to find node management IP addresses.--limit=vedge1
).--limit=control
and --limit=edge
.This collection of Ansible inventory and playbooks is designed to be used with the DevNet Learning Module Cisco SD-WAN Ansible Pipeline and the DevNet Multi-IOS Cisco Test Network sandbox. However, it can also be applied to any VIRL server that has the appropriate Cisco SD-WAN images installed.
Day Two operations on an SD-WAN topology.
How to manipulate Ansible inventory data in order to accomplish the following tasks:
This solution uses the following tools and platforms:
vManage NMS (management plane)
Cisco vManage, Cisco’s centralized management and provisioning platform for day 0, day 1, and day n+ for the entire Cisco SD-WAN infrastructure. You can log in to the Cisco vManage dashboard to centrally manage the WAN. Cisco vManage provides the ability to manage all aspects of the WAN—from provisioning, monitoring, and upgrading routers to application visibility and troubleshooting the WAN.
vSmart controller (control plane)
vSmart Controllers are the centralized brain of the solution that implements policies and connectivity between SD-WAN branches. The centralized policy engine in Cisco vSmart Controllers provides policy constructs to manipulate routing information, access control, segmentation, extranets, and service chaining
vBond orchestrator (orchestration plane)
The vBond Orchestrator facilitates the initial bring-up by performing authentication and authorization of all elements into the network. Cisco vBond Orchestrator also provides information on how each of the components connects to other components. Cisco vBond Orchestrator plays an important role in facilitating Cisco SD-WAN devices that sit behind the Network Address Translation (NAT) to communicate with the network.
vEdge router (data plane)
Cisco SD-WAN vEdge routers are delivered as hardware, software, cloud or virtualized components that sit at the perimeter of a site, such as remote office, branch office, campus, or a data center. They participate in establishing a secure virtual overlay network over a mix of any WAN transports.
Owner
Contributors
Categories
Products
Catalyst SD-WANProgramming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community