Adding Netbox

This commit is contained in:
Patrick Toal
2019-05-06 00:34:45 -04:00
parent 832502de34
commit 6e2205a046
278 changed files with 12767 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
- name: get config for verification
include_role:
name: "{{ config_manager_role }}"
vars:
ansible_network_provider: "{{ cisco_ios_role }}"
function: get
register: result
- assert:
that:
- routing == false

View File

@@ -0,0 +1,61 @@
---
- name: Include vars for load function tests
include_vars:
file: "{{ playbook_dir }}/../vars/load.yml"
- block:
- name: cleanup device configs
include_role:
name: "{{ config_manager_role }}"
vars:
ansible_network_provider: "{{ cisco_ios_role }}"
function: load
config_manager_text: "{{ setup_configs }}"
ios_config_rollback_enabled: false
ignore_errors: true
- name: load config via text string
include_role:
name: "{{ config_manager_role }}"
vars:
ansible_network_provider: "{{ cisco_ios_role }}"
function: load
config_manager_text: "{{ config_text_valid }}"
- assert:
that:
- "'No changes were found' not in ios_config_diff.stdout"
- name: set config_manager_text with all valid config to induce change in running-config
set_fact:
config_valid: "{{lookup('file', config_files_path + '/csr01_config_valid.j2')}}"
- name: load valid configurations into device using config file
include_role:
name: "{{ config_manager_role }}"
vars:
ansible_network_provider: "{{ cisco_ios_role }}"
function: load
config_manager_text: "{{ config_valid }}"
- assert:
that:
- "'No changes were found' not in ios_config_diff.stdout"
- name: set config_manager_text from lookup of a file with few invalid configs to test rollback
set_fact:
config_with_errors: "{{lookup('file', config_files_path + '/csr01_config_error.j2')}}"
- block:
- name: test rollback in case of wrong config using file
include_role:
name: "{{ config_manager_role }}"
vars:
ansible_network_provider: "{{ cisco_ios_role }}"
function: load
config_manager_text: "{{ config_with_errors }}"
register: result
rescue:
- assert:
that:
- "'Rollback Done' in ios_rollback_results.stdout"

View File

@@ -0,0 +1,13 @@
---
- hosts: csr01
gather_facts: false
tasks:
- name: Include vars
include_vars:
file: "{{ playbook_dir }}/../vars/default.yml"
- name: executing 'get' function tests
include_tasks: get.yml
- name: executing 'load' function tests
include_tasks: load.yml

View File

@@ -0,0 +1,5 @@
no router ospf 10
!
router ospf 10
network 14.1.1.0 0.0.0.255 area 1
neighbor 13.1.1.0 0.0.0.255 area 1

View File

@@ -0,0 +1,5 @@
no router ospf 10
!
router ospf 10
network 14.1.1.0 0.0.0.255 area 1
network 13.1.1.0 0.0.0.255 area 1

View File

@@ -0,0 +1,6 @@
---
# Vars for test env of ansible-network.cisco_ios role
config_manager_role: "{{ playbook_dir }}/../../../../../ansible-network.config_manager"
cisco_ios_role: "{{ playbook_dir }}/../../../../../ansible-network.cisco_ios"
config_files_path: "{{ playbook_dir }}/../templates/"

View File

@@ -0,0 +1,9 @@
---
# Vars specific to load test suite
#
setup_configs: "no interface loopback 100 \n
no router ospf 10 "
config_text_valid: "interface loopback 100 \n
description configured by config_manager role"

View File

@@ -0,0 +1,3 @@
---
- import_playbook: config_manager/tasks/main.yml

View File

@@ -0,0 +1 @@
localhost ansible_connection=local

View File

@@ -0,0 +1,377 @@
GigabitEthernet0/0/0 is up, line protocol is up
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d500 (bia e4aa.5df7.d500)
Description: internal DMZ
Internet address is 1.1.1.1/27
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is SX
output flow-control is on, input flow-control is on
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:39, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
812732 packets input, 74259217 bytes, 0 no buffer
Received 6787 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 775394 multicast, 0 pause input
21312 packets output, 8435730 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
39083 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/0/1 is up, line protocol is up
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d501 (bia e4aa.5df7.d501)
Description: external DMZ
Internet address is 2.2.2.2/27
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is SX
output flow-control is on, input flow-control is on
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1000 bits/sec, 1 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2661846 packets input, 183686421 bytes, 0 no buffer
Received 1753578 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 833407 multicast, 0 pause input
65792 packets output, 11180901 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
40944 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/0/2 is administratively down, line protocol is down
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d502 (bia e4aa.5df7.d502)
Internet address is 3.3.3.3/29
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/0/3 is administratively down, line protocol is down
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d503 (bia e4aa.5df7.d503)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/0/3.2001 is administratively down, line protocol is down
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d503 (bia e4aa.5df7.d503)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation QinQ Virtual LAN, outer ID 2001, inner ID 100
ARP type: ARPA, ARP Timeout 04:00:00
Keepalive not supported
Last clearing of "show interface" counters never
GigabitEthernet0/0/4 is administratively down, line protocol is down
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d504 (bia e4aa.5df7.d504)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/0/5 is administratively down, line protocol is down
Hardware is 6XGE-BUILT-IN, address is e4aa.5df7.d505 (bia e4aa.5df7.d505)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full Duplex, 1000Mbps, link type is auto, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0 is up, line protocol is up
Hardware is RP management port, address is e4aa.5df7.d540 (bia e4aa.5df7.d540)
Description: mgmt Interface
Internet address is 4.4.4.4/24
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1000Mbps, link type is auto, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 4000 bits/sec, 7 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
6604971 packets input, 491265219 bytes, 0 no buffer
Received 4891144 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
190759 packets output, 22542951 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
18617 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Loopback0 is up, line protocol is up
Hardware is Loopback
MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation LOOPBACK, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Tunnel0 is up, line protocol is down
Hardware is Tunnel
Description: Pim Register Tunnel (Encap) for RP 5.5.5.5
MTU 9972 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel linestate evaluation down - no IPv4 tunnel source address
Tunnel source UNKNOWN, destination 5.5.5.5
Tunnel protocol/transport PIM/IPv4
Tunnel TTL 255
Tunnel transport MTU 1472 bytes
Tunnel is transmit only
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters 1w5d
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Tunnel1 is up, line protocol is up
Hardware is Tunnel
Description: tunnel for gloabl routing for c-hub
Internet address will be negotiated using IKEv2 Modeconfig
MTU 9976 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel linestate evaluation up
Tunnel source 6.6.6.6 (GigabitEthernet0/0/1), destination 7.7.7.7
Tunnel Subblocks:
src-track:
Tunnel1 source tracking subblock associated with GigabitEthernet0/0/1
Set of tunnels with source GigabitEthernet0/0/1, 2 members (includes iterators), on interface <OK>
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Path MTU Discovery, ager 10 mins, min MTU 92
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters 1w5d
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Tunnel2 is administratively down, line protocol is down
Hardware is Tunnel
Description: tunnel for gloabl routing for SJC
Internet address will be negotiated using IKEv2 Modeconfig
MTU 10000 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel linestate evaluation down - interface not up
Tunnel source 8.8.8.8 (GigabitEthernet0/0/1), destination 9.9.9.9
Tunnel Subblocks:
src-track:
Tunnel2 source tracking subblock associated with GigabitEthernet0/0/1
Set of tunnels with source GigabitEthernet0/0/1, 2 members (includes iterators), on interface <OK>
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Path MTU Discovery, ager 10 mins, min MTU 92
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters 1w5d
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Virtual-Access1 is down, line protocol is down
Hardware is Virtual Access interface
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Closed
Base VtMgr vaccess
Vaccess status 0x0, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 5 seconds on reset
Last input never, output never, output hang never
Last clearing of "show interface" counters 1w5d
Input queue: 0/4096/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
Virtual-Template1 is down, line protocol is down
Hardware is Virtual Template interface
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Closed, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 5 seconds on reset
Last input never, output never, output hang never
Last clearing of "show interface" counters 1w5d
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions

View File

@@ -0,0 +1,33 @@
---
- name: 03.16.08.S.txt - parse `show interfaces`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_interfaces.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_interfaces/03.16.08.S.txt') }}"
register: result
- name: 03.16.08.S.txt - test `show interfaces` parser
assert:
that:
- "'GigabitEthernet0' in interfaces"
- "'GigabitEthernet0/0/1' in interfaces"
- "'GigabitEthernet0/0/3.2001' in interfaces"
- "'GigabitEthernet0/0/5' in interfaces"
- "'Tunnel0' in interfaces"
- "'Virtual-Access1' in interfaces"
- interfaces['GigabitEthernet0']['admin-status'] == 'enabled'
- interfaces['GigabitEthernet0/0/1']['admin-status'] == 'enabled'
- interfaces['Tunnel0']['admin-status'] == 'enabled'
- interfaces['Tunnel0']['oper-status'] == 'down'
- interfaces['GigabitEthernet0']['counters']['in-broadcast-pkts'] == 4891144
- interfaces['GigabitEthernet0']['counters']['in-multicast-pkts'] == None
- interfaces['Virtual-Access1']['mtu'] == 1500
- interfaces['Tunnel2']['description'] == 'tunnel for gloabl routing for SJC'
- interfaces['GigabitEthernet0/0/5']['type'] == '6XGE-BUILT-IN'
- interfaces['Tunnel0']['type'] == 'Tunnel'
- "{{ interfaces|length == 14 }}"
### Done
- name: all tests complete
debug:
msg: "All tests for `show interfaces` passed"

View File

@@ -0,0 +1,16 @@
BGP router identifier 172.16.200.13, local AS number 64512
BGP table version is 79501, main routing table version 79501
2769 network entries using 686712 bytes of memory
5538 path entries using 664560 bytes of memory
3903/1952 BGP path/bestpath attribute entries using 967944 bytes of memory
1945 BGP AS-PATH entries using 77868 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2397084 total bytes of memory
2766 received paths for inbound soft reconfiguration
BGP activity 18292/15523 prefixes, 74591/69053 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.15.17.2 4 64785 748767 766529 79501 0 0 7w1d 1125
10.1.19.2 4 1234 0 0 1 0 0 00:00:30 Active
72.31.0.13 4 65004 0 0 1 0 0 10:32:44 Idle

View File

@@ -0,0 +1,16 @@
BGP router identifier 172.16.32.1, local AS number 65123
BGP table version is 3317, main routing table version 3317
140 network entries using 16380 bytes of memory
276 path entries using 14352 bytes of memory
1184/12 BGP path/bestpath attribute entries using 165760 bytes of memory
108 BGP AS-PATH entries using 2832 bytes of memory
84 BGP community entries using 2016 bytes of memory
74 BGP extended community entries using 1920 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 203260 total bytes of memory
BGP activity 2362466/2358636 prefixes, 9381389/9370747 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.31.32.10 4 64910 5784429 5675902 3317 0 0 23w5d 114
172.16.32.1 4 65123 6281459 6288574 3317 0 0 28w5d 136

View File

@@ -0,0 +1,14 @@
BGP router identifier 10.29.19.69, local AS number 65312
BGP table version is 8405, main routing table version 8405
1390 network entries using 189040 bytes of memory
1390 path entries using 72280 bytes of memory
1016/1016 BGP path/bestpath attribute entries using 125984 bytes of memory
1008 BGP AS-PATH entries using 24516 bytes of memory
2 BGP extended community entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 411868 total bytes of memory
BGP activity 3131/1741 prefixes, 4889/3499 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.29.19.70 4 7474 78662 72306 8405 0 0 4d22h 1385

View File

@@ -0,0 +1,95 @@
---
### BGP not active
- name: not active - parse `show ip bgp summary`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_bgp_summary.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_bgp_summary/bgp_not_active.txt') }}"
register: result
- name: not active - test `show ip bgp summary` parser
assert:
that:
- bgp['process_state'] == 'not active'
- name: clear facts
meta: clear_facts
### IOS 15.1(2)T5.txt
- name: 15.1(2)T5.txt - parse `show ip bgp summary`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_bgp_summary.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_bgp_summary/15.1(2)T5.txt') }}"
register: result
- name: 15.1(2)T5.txt - test `show ip bgp summary` parser
assert:
that:
- "'10.29.19.70' in bgp['neighbors']"
- bgp['neighbors']['10.29.19.70']['state_pfxrcd'] | int == 1385
- bgp['neighbors']['10.29.19.70']['asn'] | int == 7474
- bgp['neighbors']['10.29.19.70']['ip_version'] | int == 4
- bgp['neighbors']['10.29.19.70']['timer'] == '4d22h'
- name: clear facts
meta: clear_facts
### IOS 12.2(33)SXH5.txt
- name: 12.2(33)SXH5.txt - parse `show ip bgp summary`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_bgp_summary.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_bgp_summary/12.2(33)SXH5.txt') }}"
register: result
- name: 12.2(33)SXH5.txt - test `show ip bgp summary` parser
assert:
that:
- "'172.31.32.10' in bgp['neighbors']"
- "'172.16.32.1' in bgp['neighbors']"
- bgp['neighbors']['172.31.32.10']['state_pfxrcd'] | int == 114
- bgp['neighbors']['172.31.32.10']['asn'] | int == 64910
- bgp['neighbors']['172.31.32.10']['ip_version'] | int == 4
- bgp['neighbors']['172.31.32.10']['timer'] == '23w5d'
- bgp['neighbors']['172.16.32.1']['state_pfxrcd'] | int == 136
- bgp['neighbors']['172.16.32.1']['asn'] | int == 65123
- bgp['neighbors']['172.16.32.1']['ip_version'] | int == 4
- "'{{ bgp['neighbors']['172.16.32.1']['timer'] | string }}' == '28w5d'"
- name: clear facts
meta: clear_facts
### IOS-XE 03.14.00.S
- name: 03.14.00.S.txt - parse `show ip bgp summary`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_bgp_summary.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_bgp_summary/03.14.00.S.txt') }}"
register: result
- name: 03.14.00.S.txt - test `show ip bgp summary` parser
assert:
that:
- "'10.15.17.2' in bgp['neighbors']"
- "'10.1.19.2' in bgp['neighbors']"
- "'72.31.0.13' in bgp['neighbors']"
- bgp['neighbors']['10.15.17.2']['state_pfxrcd'] | int == 1125
- bgp['neighbors']['10.15.17.2']['asn'] | int == 64785
- bgp['neighbors']['10.15.17.2']['ip_version'] | int == 4
- bgp['neighbors']['10.15.17.2']['timer'] == '7w1d'
- bgp['neighbors']['10.1.19.2']['state_pfxrcd'] == 'Active'
- bgp['neighbors']['10.1.19.2']['asn'] | int == 1234
- bgp['neighbors']['10.1.19.2']['ip_version'] | int == 4
- "'{{ bgp['neighbors']['10.1.19.2']['timer'] | string }}' == '00:00:30'"
- bgp['neighbors']['72.31.0.13']['state_pfxrcd'] == 'Idle'
- bgp['neighbors']['72.31.0.13']['asn'] | int == 65004
- bgp['neighbors']['72.31.0.13']['ip_version'] | int == 4
- "'{{ bgp['neighbors']['72.31.0.13']['timer'] | string }}' == '10:32:44'"
### Done
- name: all tests complete
debug:
msg: "All tests for `show ip bgp summary` passed"

View File

@@ -0,0 +1,47 @@
VRF Mgmt-intf (VRF Id = 1); default RD <not set>; default VPNID <not set>
New CLI format, supports multiple address-families
Flags: 0x1808
Interfaces:
Gi0
Address family ipv4 unicast (Table ID = 0x1):
Flags: 0x0
No Export VPN route-target communities
No Import VPN route-target communities
No import route-map
No global export route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
VRF Def (VRF Id = 2); default RD 65000:20; default VPNID <not set>
Description: Def VPN
Old CLI format, supports IPv4 only
Flags: 0xC
Interfaces:
Lo20 Tu20 Gi0/0/1.211
Gi0/0/2.1721
Address family ipv4 unicast (Table ID = 0x7):
Flags: 0x0
No Export VPN route-target communities
No Import VPN route-target communities
No import route-map
No global export route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
VRF XYzzz0-1-9 (VRF Id = 3); default RD 65000:19; default VPNID <not set>
Description: XYzzz0-1-9 VPN
Old CLI format, supports IPv4 only
Flags: 0xC
Interfaces:
Lo19 Tu19 Gi0/0/1.19
Address family ipv4 unicast (Table ID = 0x4):
Flags: 0x0
No Export VPN route-target communities
No Import VPN route-target communities
No import route-map
No global export route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix

View File

@@ -0,0 +1,47 @@
VRF ABC; default RD 65000:12; default VPNID <not set>
Description: ABC VPN
Interfaces:
Te7/3.16
VRF Table ID = 45
Export VPN route-target communities
RT:65000:12
Import VPN route-target communities
RT:65000:12
No import route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
vrf-conn-aggr for connected and BGP aggregates (Label 1706)
VRF Def; default RD 65000:13; default VPNID <not set>
Description: Def VPN
Interfaces:
Vl190 Vl193 Lo10
Vl85 Vl194 Vl19
Vl191 Te7/3.194
VRF Table ID = 1
Export VPN route-target communities
RT:65000:13 RT:65000:120 RT:65000:130
RT:123:123
Import VPN route-target communities
RT:65000:13 RT:65000:14
No import route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
vrf-conn-aggr for connected and BGP aggregates (Label 16)
VRF XYzzz0-1-9; default RD 65111:100; default VPNID <not set>
Description: A random description
Interfaces:
Vl777 Gi7/3.30
VRF Table ID = 6
Export VPN route-target communities
RT:65000:100
Import VPN route-target communities
RT:65000:100
No import route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
vrf-conn-aggr for connected and BGP aggregates (Label 1446)

View File

@@ -0,0 +1,58 @@
---
### IOS 12.2(33)SXH5
- name: parse 12.2(33)SXH5 - `show ip vrf detail`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_vrf_detail.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_vrf_detail/12.2(33)SXH5.txt') }}"
register: result
- name: test 12.2(33)SXH5 - `show ip vrf detail`
assert:
that:
- "'ABC' in vrfs"
- "'XYzzz0-1-9' in vrfs"
- "'Def' in vrfs"
- vrfs.ABC.rd == '65000:12'
- vrfs.ABC.description == 'ABC VPN'
- vrfs['ABC']['export_rt'] == ['65000:12']
- vrfs['ABC']['import_rt'] == ['65000:12']
- vrfs['ABC']['interface'] == ['Te7/3.16']
- vrfs['Def']['rd'] == '65000:13'
- vrfs['Def']['description'] == 'Def VPN'
- vrfs['Def']['export_rt'] == ['65000:13','65000:120','65000:130','123:123']
- vrfs['Def']['import_rt'] == ['65000:13','65000:14']
- vrfs['Def']['interface'] == ['Vl190','Vl193','Lo10','Vl85','Vl194','Vl19','Vl191','Te7/3.194']
- vrfs['XYzzz0-1-9']['rd'] == '65111:100'
- vrfs['XYzzz0-1-9']['description'] == 'A random description'
- vrfs['XYzzz0-1-9']['export_rt'] == ['65000:100']
- vrfs['XYzzz0-1-9']['import_rt'] == ['65000:100']
- vrfs['XYzzz0-1-9']['interface'] == ['Vl777','Gi7/3.30']
- name: clear facts
meta: clear_facts
### IOS 03.14.00.S
- name: parse 03.14.00.S - `show ip vrf detail`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_ip_vrf_detail.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_ip_vrf_detail/03.14.00.S.txt') }}"
register: result
- name: test `03.14.00.S - show ip vrf detail`
assert:
that:
- "'Mgmt-intf' in vrfs"
- "'Def' in vrfs"
- "'XYzzz0-1-9' in vrfs"
- vrfs['Def']['rd'] == '65000:20'
- vrfs['Def']['description'] == 'Def VPN'
- vrfs['Def']['interface'] == ['Lo20','Tu20','Gi0/0/1.211','Gi0/0/2.1721']
- vrfs['XYzzz0-1-9']['rd'] == '65000:19'
- vrfs['XYzzz0-1-9']['interface'] == ['Lo19','Tu19','Gi0/0/1.19']
### Done
- name: all tests complete
debug:
msg: "All tests for `show ip vrf detail` passed"

View File

@@ -0,0 +1,65 @@
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Tue 20-Mar-12 18:57 by prod_rel_team
ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)
CANVLPST_R2 uptime is 9 weeks, 5 days, 17 hours, 53 minutes
System returned to ROM by reload at 18:48:21 UTC Tue Oct 9 2018
System restarted at 18:49:38 UTC Tue Oct 9 2018
System image file is "flash:c2900-universalk9-mz.SPA.151-4.M4.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco CISCO2921/K9 (revision 1.0) with 2547648K/73728K bytes of memory.
Processor board ID FGL171712S5
3 Gigabit Ethernet interfaces
1 terminal line
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
999936K bytes of ATA System CompactFlash 0 (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 CISCO2921/K9 FGL171712S5
Technology Package License Information for Module:'c2900'
-----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------
ipbase ipbasek9 Permanent ipbasek9
security securityk9 Permanent securityk9
uc uck9 Permanent uck9
data datak9 Permanent datak9
Configuration register is 0x2102

View File

@@ -0,0 +1,65 @@
Cisco IOS XE Software, Version 03.14.00.S - Standard Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5(1)S, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Thu 20-Nov-14 18:28 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
ios-xe-1 uptime is 21 weeks, 23 hours, 27 minutes
Uptime for this control processor is 21 weeks, 23 hours, 28 minutes
System returned to ROM by reload at 09:55:44 UTC Wed Jun 13 2018
System restarted at 09:58:28 UTC Wed Jun 13 2018
System image file is "bootflash:isr4400-universalk9.03.14.00.S.155-1.S-std.SPA.bin"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Technology Package License Information:
-----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------
appx appxk9 Permanent appxk9
uc None None None
security securityk9 Permanent securityk9
ipbase ipbasek9 Permanent ipbasek9
cisco ISR4431/K9 (1RU) processor with 7825388K/6147K bytes of memory.
Processor board ID FGL2051117T
4 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16777216K bytes of physical memory.
14659583K bytes of flash memory at bootflash:.
Configuration register is 0x2102

View File

@@ -0,0 +1,82 @@
Cisco IOS XE Software, Version 16.06.04
Cisco IOS Software [Everest], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.6.4, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Sun 08-Jul-18 04:33 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
4431_R1 uptime is 6 days, 2 hours, 23 minutes
Uptime for this control processor is 6 days, 2 hours, 26 minutes
System returned to ROM by PowerOn
System restarted at 08:29:02 UTC Wed Nov 7 2018
System image file is "bootflash:isr4400-universalk9.16.06.04.SPA.bin"
Last reload reason: PowerOn
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Suite License Information for Module:'esg'
--------------------------------------------------------------------------------
Suite Suite Current Type Suite Next reboot
--------------------------------------------------------------------------------
FoundationSuiteK9 None None None
securityk9
appxk9
AdvUCSuiteK9 None None None
uck9
cme-srst
cube
Technology Package License Information:
-----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------
appxk9 appxk9 Permanent appxk9
uck9 None None None
securityk9 securityk9 Permanent securityk9
ipbase ipbasek9 Permanent ipbasek9
cisco ISR4431/K9 (1RU) processor with 7939999K/6147K bytes of memory.
Processor board ID FGL12345678
4 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16777216K bytes of physical memory.
14888959K bytes of flash memory at bootflash:.
0K bytes of WebUI ODM Files at webui:.
Configuration register is 0x2102

View File

@@ -0,0 +1,72 @@
---
### IOS-XE 15.5.1
- name: 15.5.1.txt - parse `show version`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_version.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_version/15.5.1.txt') }}"
- name: 15.5.1.txt - test `show version` parser
assert:
that:
- system.uptime == '21 weeks, 23 hours, 27 minutes'
- system.uptime_split.years | int == 0
- system.uptime_split.weeks | int == 21
- system.uptime_split.days | int == 0
- system.uptime_split.hours | int == 23
- system.uptime_split.minutes | int == 27
- system.version == '15.5(1)S'
- system.model is not none
- system.reload_reason == 'reload'
- system.restart_time == '09:58:28'
- system.restart_tz == 'UTC'
### IOS-XE 16.6.4
- name: 16.6.4.txt - parse `show version`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_version.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_version/16.6.4.txt') }}"
- name: 16.6.4.txt - test `show version` parser
assert:
that:
- system.uptime == '6 days, 2 hours, 23 minutes'
- system.uptime_split.years | int == 0
- system.uptime_split.weeks | int == 0
- system.uptime_split.days | int == 6
- system.uptime_split.hours | int == 2
- system.uptime_split.minutes | int == 23
- system.version == '16.6.4'
- system.model is not none
- system.reload_reason == 'poweron'
- system.restart_time == '08:29:02'
- system.restart_tz == 'UTC'
### IOS 15.1(4)M4
- name: 15.1(4)M4 - parse `show version`
command_parser:
file: "{{ playbook_dir }}/../parser_templates/cli/show_version.yaml"
content: "{{ lookup('file', '{{ playbook_dir }}/parser_templates/cli/show_version/15.1.4.txt') }}"
- name: 15.1.4.txt - test `show version` parser
assert:
that:
- system.uptime == '9 weeks, 5 days, 17 hours, 53 minutes'
- system.uptime_split.years | int == 0
- system.uptime_split.weeks | int == 9
- system.uptime_split.days | int == 5
- system.uptime_split.hours | int == 17
- system.uptime_split.minutes | int == 53
- system.version == '15.1(4)M4'
- system.model is not none
- system.reload_reason == 'reload'
- system.restart_time == '18:49:38'
- system.restart_tz == 'UTC'
### Done
- name: all tests complete
debug:
msg: "All tests for `show version` passed"

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env ansible-playbook
---
# Main Entrypoint
- import_playbook: config_manager/test.yml

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env ansible-playbook
---
- hosts: localhost
gather_facts: false
vars:
ansible_network_os: ios
roles:
- "{{ playbook_dir }}/../../ansible-network.network-engine"
tasks:
- name: Include tests for `show interfaces`
include_tasks: parser_templates/cli/show_interfaces/main.yaml
vars:
interfaces: "{{ cisco_ios['interfaces'] }}"
- name: Include tests for `show ip bgp summary`
include_tasks: parser_templates/cli/show_ip_bgp_summary/main.yaml
vars:
bgp: "{{ cisco_ios['vrf']['DEFAULT']['protocols']['bgp'] }}"
- name: Include tests for `show ip vrf detail`
include_tasks: parser_templates/cli/show_ip_vrf_detail/main.yaml
vars:
vrfs: "{{ cisco_ios['vrf'] }}"
- name: Include tests for `show version`
include_tasks: parser_templates/cli/show_version/main.yaml
vars:
system: "{{ cisco_ios['system'] }}"