Coder Social home page Coder Social logo

ansible-network-parsers's Introduction

Ansible Network Parsers

This repository contains CLI parsers using the parse_cli Ansible filter. The networking platforms covered are:

  • Cisco NXOS (WIP)
  • Cisco IOS (WIP)
  • Cisco IOS-XR (WIP)
  • Arista (WIP)

The structure of the repository is as follows:

parsers
├── eos
├── ios
├── iosxr
└── nxos

In each Network OS directory one can find parsers for

  • Interface details
  • VLAN details
  • BGP details
  • OSPF details
  • SYSLOG Details
  • NTP Details
  • SNMP Details

A number of these parsers can possibly be included in future iterations of network specific fact collection modules like nxos_facts or ios_facts.

USAGE

Here is an example of how to use a NxOS CLI parser

- hosts: localhost
  connection: local
  tasks:
    - name: get show interface
      nxos_command:
        commands:
            - show interface
      register: iface_output
    - name: generate fact from interface output
      set_facts:
        nxos_ifaces: "{{ iface_output.stdout[0] |parse_cli('./parsers/nxos/nxos_show_interface_parser.yml')

LICENSE

MIT

Authors

Ansible Community

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.