Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 922 Bytes

File metadata and controls

38 lines (23 loc) · 922 Bytes

command_parser_show_ip_interface

This is a command parser for Ansible network-engine.

It issues the Cisco IOS command 'show ip vrf interface' and parses the output.

The file show_ip_vrf_interface.yml is a playbook using the parser. It can be used as an example and should be self-explanatory.

Inspiration came from this great blog: https://termlen0.github.io/2018/06/26/observations/

Example

Here is an example of how the output might look like:

    "Lo16": {
        "data": {
            "ip_address": "10.4.2.2",
            "name": "Loopback16",
            "protocol_state": "up",
            "vrf": "120"
        }
    },

Licensed under the Apache License Version 2.0

Written by farid@joubbi.se

http://www.joubbi.se/monitoring.html