GithubHelp home page GithubHelp logo

sdwan-ops's Introduction

sdwan-ops

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.

Cloning this repository

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

Requirements

  • ansible
  • requests

Installing requirements with pip

pip install -r requirements.txt

Playbooks

These playbooks all take the following extra-vars:

  • vmanage_host: The IP address or DNS name of vmanage
  • vmanage_user: User with adminsitrator privileges on vmanage
  • vmanage_password: Password for the user specified

Note: These vars can also be set in inventory

Device Facts

Display facts about the devices in vmanage (e.g. controllers, out of sync edges, free devices, etc.). This can be used as the basis for other playbooks

ansible-playbook device-facts.yml -e vmanage_host=1.2.3.4 -e vmanage_user=admin -e vmanage_password=admin

Export/Import Policy

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:

  • file: the name of the file to either export to or import from.

Export Templates from vmanage

ansible-playbook export-templates.yml -e vmanage_host=1.2.3.4 -e vmanage_user=admin -e vmanage_password=admin

Export Policy from vmanage

ansible-playbook export-policy.yml -e vmanage_host=1.2.3.4 -e vmanage_user=admin -e vmanage_password=admin

Import Templates to vmanage

ansible-playbook import-templates.yml -e vmanage_host=1.2.3.4 -e vmanage_user=admin -e vmanage_password=admin

Import Policy to vmanage

ansible-playbook import-policy.yml -e vmanage_host=1.2.3.4 -e vmanage_user=admin -e vmanage_password=admin

sdwan-ops's People

Contributors

stevenca avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.