Giter Site home page Giter Site logo

gve-sw / ansible_acitoolkit_sample_code Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 5.82 MB

Code that offers a workflow on adding physical domains to existing EPGs then creating a Virtual Port Channel with the EPG

License: Other

Dockerfile 0.01% Ruby 0.09% Python 95.39% JavaScript 2.16% CSS 0.32% HTML 1.85% Makefile 0.18% Shell 0.01%
gve-devnet

ansible_acitoolkit_sample_code's Introduction

ansible_acitoolkit_sample_code

Code that offers a workflow on adding physical domains to existing EPGs then binding that EPG to an existing Virtual Port Channel

Contacts

  • Jorge Banegas

Solution Components

  • ACI
  • Ansible
  • ACI Toolkit Python Library

Notes

  • There is an ansible folder where it contains the playbooks and also variable files where you may tweak the ansible playbook configurations (make sure to check out the resource links below for more info on ACI with Ansible).

Installation/Configuration

First you must edit credentials.py to include your personal ACI fabric information. Change the following lines

url = "http://x.x.x.x"
ip_address = "x.x.x.x"
username="admin"
password="password"

Create virtual environment and install dependencies using requirements.txt file

virtualenv env
source env/bin/activate
pip3 install -r requirements.txt

Usage

To launch script run:

$ python3 main.py

Screenshots

Here is an EPG that contains no Physical Domain alt text

Step1: Script will list out all tenants and have the user to choose which one to select alt text alt text

Step2: Script will display all the existing EPG and their associated Application Profile and ask the user which EPG to select

alt text

Step3: Script will display all physical domains and ask the user to choose which one to apply

alt text

Step4: Script will add the physical domain selected onto the respective EPG

alt text alt text

Step4: Script will list all VPCs of the fabric and ask the user to choose which on to apply

alt text

Step5: VPC will be attached to the EPG and the script will end

alt text

/IMAGES/0image.png

API Reference/Documentation:

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

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.

ansible_acitoolkit_sample_code's People

Contributors

jorgebanegas avatar

Watchers

 avatar  avatar  avatar  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.