Giter Site home page Giter Site logo

andi-bigswitch / ansible-avd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aristanetworks/avd

0.0 1.0 0.0 19.46 MB

Ansible Arista Validated Design

Home Page: https://www.avd.sh

License: Apache License 2.0

Shell 0.08% JavaScript 0.03% Python 23.72% CSS 0.67% Makefile 1.38% HTML 0.19% Dockerfile 0.11% Jinja 73.82%

ansible-avd's Introduction

Ansible Collection For Arista Validated Designs - arista.avd

Arista AVD collection version License

Table of Contents:

About

Arista Networks supports Ansible for managing devices running the EOS operating system natively through eapi or CloudVision Portal (CVP). This collection includes a set of ansible roles and modules to help kick-start your automation with Arista. The various roles and templates provided are designed to be customized and extended to your needs!

Arista AVD Overview

Reference Designs

The arista.avd collection provides abstracted data models and framework to build, document, deploy and validate the following designs:

L3LS EVPN:

Underlay Overlay Topology
eBGP eBGP Multi-Stage + L2 Leafs
ISIS eBGP Multi-Stage + L2 Leafs
ISIS iBGP Multi-Stage + L2 Leafs
OSPF eBGP Multi-Stage + L2 Leafs
OSPF iBGP Multi-Stage + L2 Leafs
RFC5549(eBGP) eBGP Multi-Stage + L2 Leafs

Arista AVD Overview

Project Documentation

The documentation how to leverage ansible-avd collection is located here:

Installation

Collection Installation

Ansible galaxy hosts all stable versions of this collection. Installation from ansible-galaxy is the most convenient approach for consuming arista.avd content. Please follow this guide.

Requirements

To install requirements please follow this guide.

Ansible Configuration INI file:

  • enable jinja2 extensions: loop controls and do
  • By default, Ansible will issue a warning when a duplicate dict key is encountered in YAML. We recommend to change to error instead and stop playbook execution when a duplicate key is detected.
jinja2_extensions=jinja2.ext.loopcontrols,jinja2.ext.do
duplicate_dict_key=error

NOTE: When using ansible-cvp modules, the user who is executing the ansible-playbook has to have access to both CVP and the EOS CLI.

Example Playbooks

An example playbook to deploy VXLAN/EVPN Fabric via CloudVision:

Figure 1: Example Playbook CloudVision Deployment

- hosts: DC1_FABRIC
  tasks:

    - name: generate intended variables
      import_role:
         name: arista.avd.eos_designs

    - name: generate device intended config and documentation
      import_role:
         name: arista.avd.eos_cli_config_gen

- hosts: CVP
  tasks:

  - name: upload cvp configlets
    import_role:
        name: arista.avd.cvp_configlet_upload
    vars:
      configlet_directory: 'configlets/'
      file_extension: 'txt'
      configlets_cvp_prefix: 'DC1-AVD'

    - name: deploy configuration via CVP
      import_role:
         name: arista.avd.eos_config_deploy_cvp

Execute eos_state_validation playbook once change control has been approved and deployed to devices in CVP. Note: To run this playbook, ansible_host must be configured in your inventory for every EOS device. eAPI access must be configured and allowed in your networks.

- hosts: DC1_FABRIC

  tasks:

    - name: audit fabric state using EOS eAPI connection
      import_role:
         name: arista.avd.eos_validate_state

An example playbook to deploy VXLAN/EVPN Fabric via eAPI:

Figure 2: Example Playbook CloudVision Deployment

- hosts: DC1_FABRIC

  tasks:

    - name: generate intended variables
      import_role:
         name: arista.avd.eos_designs

    - name: generate device intended config and documentation
      import_role:
         name: arista.avd.eos_cli_config_gen

    - name: deploy configuration via eAPI
      import_role:
         name: arista.avd.eos_config_deploy_eapi

    - name: audit fabric state using EOS eAPI connection
      import_role:
         name: arista.avd.eos_validate_state

Examples

Full examples with variables and outputs, are located here:

Arista NetDevOps Examples

Additional Resources

Ask a question

Support for this arista.avd collection is provided by the community directly in this repository. Easiest way to get support is to open an issue.

Contributing

Contributing pull requests are gladly welcomed for this repository. If you are planning a big change, please start a discussion first to make sure we'll be able to merge it.

You can also open an issue to report any problem or to submit enhancement.

Branching Model

  • The devel branch corresponds to the release actively under development.
  • The releases/x.x.x branches correspond to stable releases.
  • Fork repository and create a branch based on devel to set up a dev environment if you want to open a PR.
  • See the ansible-avd release for information about active branches.

License

Project is published under Apache 2.0 License

ansible-avd's People

Contributors

ankudinov avatar aphillipps avatar c-po avatar carlbuchmann avatar ccsnw avatar clausholbecharista avatar colinmacgiolla avatar emilarista avatar emilotep avatar gmuloc avatar ifoughal avatar jonxstill avatar kgrozis-arista avatar konikachaurasiya-gslab avatar ksator avatar lermilov avatar melkypie avatar mpergament avatar mthiel117 avatar nielsjlarsen avatar noredistribution avatar onurgashi avatar phirephly avatar quulah avatar ryanmerolle avatar sengarth avatar tgodaa avatar titom73 avatar uchihaitachisama avatar xaviramon avatar

Watchers

 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.