Giter Club home page Giter Club logo

ansible-nae's Introduction

ansible-nae

The ansible-nae project provides an Ansible collection for managing and automating your Cisco NAE environment. It consists of a set of modules and roles for performing tasks related to NAE.

Note: This collection is not compatible with versions of Ansible before v2.8.

Requirements

Ansible v2.8 or newer requests requests_toolbelt jsonpath_ng

Install

Ansible and other requirements must be installed

sudo pip install ansible requests requests-toolbelt jsonpath_ng pathlib filelock

Install the collection

ansible-galaxy collection install cisco.nae

Use

Once the collection is installed, you can use it in a playbook by specifying the full namespace path to the module, plugin and/or role.

- name: NAE Testing
  hosts: all
  vars:
    nae_login: &nae_login
        host: 1.1.1.1
        port: 443  
        username: Admin
        password: password  
    validate_certs: False
  tasks:
  - name: Create a pre-change analysis from file
    nae_prechange:
      <<: *nae_login
      ag_name: FAB2
      file: config.json
      name: New
      state: present
  - name Create Online Assurance Group (with APIC Configuration Export Polciy)
    nae_ag:
      <<: *nae_login
      state: present
      name: AG1
      online: True
      apic_hostnames: 1.2.3.4
      apic_username: admin
      apic_password: password
...

RoadMap

Pre-change analysis

  • Configure PCA
  • Start/Stop/Query PCA

Epoch Delta

  • Configure Delta Analysis
  • Query Delta Analysis Result

Compliance Analysis

  • Create/Update/Read/Delete
    • Object Selectors
    • Traffic Selector
    • Compliance Requirement
    • Compliance Requirement Sets
  • Create Associate/Disassociate a requirement set with an AG
  • Report Creation

Assurance Group Management

  • Create/Update/Read/Delete Online Assurance Group
    • Configure F5 Load Balancer
  • Create/Update/Read/Delete Offline Assurance Group

Offline File Management

  • Upload/Delete/Get a File

Online/Offline Analysis

  • Create/Start/Stop/Delete Online Analysis
  • Create/Start/Stop/Delete Offline Analysis

Smart Events

  • Get smart events by Type/Severity
  • Export Smart Events in CSV format
  • Smart Event Suppression
    • Create/Update/Delete/Read Even suppression rules
    • Create/Update/Delete/Read Even suppression rules sets
    • Activate a rules set with an AG
    • Associate/Disassociate a requirement set with an AG

TCAM Analysis

  • Export TCAM stats as CSV

Appliance Management

  • Create/Update/Delete/Read Users

Testing latest code

If you wanna test the latest code you can:

  • Clone this repo
  • ansible-galaxy collection build --force
  • ansible-galaxy collection install cisco-nae-* --force

ansible-nae's People

Contributors

xinyuezhao avatar shan-kulk avatar camrossi avatar lhercot avatar

Watchers

James Cloos 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.