Skip to content

Commit 5a947fd

Browse files
authored
Add cisco_ios_show_running-config_interface (#2246)
* Create cisco_ios_show_running-config_interface.raw * Add files via upload * Update index * Create cisco_ios_show_running-config_interface.textfsm * Update cisco_ios_show_running-config_interface.yml * Update cisco_ios_show_running-config_interface.yml
1 parent e436770 commit 5a947fd

File tree

4 files changed

+227
-0
lines changed

4 files changed

+227
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Value Required INTERFACE (\S+)
2+
Value DESCRIPTION (.*)
3+
Value BANDWIDTH (\d+)
4+
Value MTU (\d+)
5+
Value OUTER_VLAN (\d+)
6+
Value INNER_VLAN (\d+)
7+
Value VRF (\S+)
8+
Value IP_ADDRESS (\d+.\d+.\d+.\d+)
9+
Value NETMASK (\d+.\d+.\d+.\d+)
10+
Value IPV6_ADDRESS (\S+)
11+
Value PREFIXV6_LENGTH (\d+)
12+
Value PROXY_ARP (\S+)
13+
Value UNICAST_SOURCE (\S+)
14+
Value INPUT_POLICY (\S+)
15+
Value OUTPUT_POLICY (\S+)
16+
Value ACCESS_GROUP_IN (\S+)
17+
Value ACCESS_GROUP_OUT (\S+)
18+
19+
Start
20+
^(Building|Current)\s+
21+
^interface\s+${INTERFACE}
22+
^\s+description\s+${DESCRIPTION}
23+
^\s+bandwidth\s+${BANDWIDTH}
24+
^\s+encapsulation\s+dot1Q\s+${OUTER_VLAN}(?:\s+second-dot1q\s+${INNER_VLAN})?
25+
^(?:\s+ip)?\s+vrf\s+forwarding\s+${VRF}
26+
^\s+ip\s+address\s+${IP_ADDRESS}\s+${NETMASK}
27+
^\s+ipv6\s+address\s+${IPV6_ADDRESS}\/+${PREFIXV6_LENGTH}
28+
^\s+${PROXY_ARP}\s+ip\s+proxy-arp
29+
^\s+mtu\s+${MTU}
30+
^\s+ip\s+verify\s+unicast\s+source\s+reachable-via\s+${UNICAST_SOURCE}
31+
^\s+no\s+clns\s+route-cache
32+
^\s+no\s+ip
33+
^\s+ip\s+access-group\s+${ACCESS_GROUP_IN}\s+in
34+
^\s+ip\s+access-group\s+${ACCESS_GROUP_OUT}\s+out
35+
^\s+(shutdown|ipv6|ppp|load|speed|ip|plim|dampening|carrier|mpls|bfd|standby|hold-queue)
36+
^(?:\s+no)?\s+negotiation
37+
^\s+service-policy\s+input\s+${INPUT_POLICY}
38+
^\s+service-policy\s+output\s+${OUTPUT_POLICY}
39+
^!$$ -> Record
40+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ cisco_ios_show_ip_eigrp_neighbors_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[
270270
cisco_ios_show_sdwan_control_connections.textfsm, .*, cisco_ios, sh[[ow]] sdw[[an]] cont[[rol]] connections
271271
cisco_ios_show_ip_dhcp_snooping_binding.textfsm, .*, cisco_ios, sh[[ow]] ip dhcp sn[[ooping]] bi[[nding]]
272272
cisco_ios_show_ip_ospf_database_network.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] ne[[twork]]
273+
cisco_ios_show_running-config_interface.textfsm, .*, cisco_ios, sh[[ow]] ru[[nning-config]] in[[terface]]
273274
cisco_ios_show_sdwan_bfd_sessions_table.textfsm, .*, cisco_ios, sh[[ow]] sdw[[an]] bf[[d]] ses[[sions]] ta[[ble]]
274275
cisco_ios_show_authentication_sessions.textfsm, .*, cisco_ios, show authen[[tication]] ses[[sions]]
275276
cisco_ios_show_crypto_pki_certificates.textfsm, .*, cisco_ios, sh[[ow]] cry[[pto]] p[[ki]] ce[[rtificates]]
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Building configuration...
2+
3+
Current configuration : 440 bytes
4+
!
5+
interface GigabitEthernet2/0/4.223415
6+
description DISTRIBUTION | 2048K
7+
bandwidth 2048
8+
encapsulation dot1Q 2234 second-dot1q 15
9+
vrf forwarding CLIENT_VOIP:1234
10+
ip address 10.30.33.161 255.255.255.252
11+
no ip proxy-arp
12+
ip verify unicast source reachable-via rx allow-default allow-self-ping
13+
service-policy input VIPSIP_POLICY_2048_V1
14+
service-policy output VIPSIP_POLICY_2048_OUT
15+
!
16+
interface GigabitEthernet2/0/4.223427
17+
description PEOPLE | 100M
18+
bandwidth 100000
19+
encapsulation dot1Q 2234 second-dot1q 27
20+
vrf forwarding CLIENT_VOIP:1234
21+
ip address 10.53.8.241 255.255.255.252
22+
no ip proxy-arp
23+
ip verify unicast source reachable-via rx allow-default allow-self-ping
24+
service-policy input DATA_POLICY_100M_V1
25+
service-policy output DATA_POLICY_100M_OUT
26+
!
27+
interface GigabitEthernet2/0/4.223436
28+
description AVENIDA | 100M
29+
bandwidth 2048
30+
encapsulation dot1Q 2234 second-dot1q 36
31+
vrf forwarding CLIENT_VOIP:1234
32+
ip address 10.39.246.29 255.255.255.252
33+
no ip proxy-arp
34+
ip verify unicast source reachable-via rx allow-default allow-self-ping
35+
ip access-group oACL out
36+
ip access-group iACL in
37+
service-policy input VIPSIP_POLICY_2048_V1
38+
service-policy output VIPSIP_POLICY_2048_OUT
39+
!
40+
interface GigabitEthernet2/0/4.223449
41+
description MONTE EVEREST | 1500K
42+
bandwidth 2048
43+
encapsulation dot1Q 2234 second-dot1q 49
44+
vrf forwarding CLIENT_VOIP:1234
45+
ip address 10.30.33.41 255.255.255.252
46+
no ip proxy-arp
47+
ip verify unicast source reachable-via tx allow-default allow-self-ping
48+
ip access-group iACL in
49+
ip access-group ACL_OUTPUT out
50+
service-policy input VIPSIP_POLICY_2048_V1
51+
service-policy output VIPSIP_POLICY_2048_OUT
52+
!
53+
interface GigabitEthernet2/0/4.223478
54+
description TEST PASS| 100M
55+
mtu 9096
56+
bandwidth 1000
57+
encapsulation dot1Q 2234 second-dot1q 1011
58+
ip vrf forwarding CLIENT_VOIP:1234
59+
ip address 10.39.18.217 255.255.255.252
60+
ipv6 address FE80:A8::2DA::1689/126
61+
ip flow monitor IPV4_MONITOR_MAP sampler FNF_SAMPLER_MAP input
62+
no ip proxy-arp
63+
no negotiation
64+
ip verify unicast source reachable-via rx allow-default allow-self-ping
65+
ip access-group ACL_INPUT in
66+
service-policy input VIPSIP_POLICY_1000_V1
67+
service-policy output VIPSIP_POLICY_1000_OUT
68+
!
69+
interface GigabitEthernet2/0/4.22341020
70+
description BLUE | 800K
71+
mtu 1546
72+
bandwidth 800
73+
encapsulation dot1Q 2234 second-dot1q 1020
74+
vrf forwarding CLIENT_VOIP:1234
75+
ip flow monitor IPV4_MONITOR_MAP sampler FNF_SAMPLER_MAP input
76+
ip address 10.30.33.197 255.255.255.252
77+
no ip proxy-arp
78+
ip verify unicast source reachable-via rx allow-default allow-self-ping
79+
ip access-group oACL out
80+
service-policy input VIPSIP_POLICY_800_V1
81+
service-policy output VIPSIP_POLICY_800_OUT
82+
!
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
parsed_sample:
3+
- access_group_in: ""
4+
access_group_out: ""
5+
bandwidth: "2048"
6+
description: "DISTRIBUTION | 2048K"
7+
inner_vlan: "15"
8+
input_policy: "VIPSIP_POLICY_2048_V1"
9+
interface: "GigabitEthernet2/0/4.223415"
10+
ipv6_address: ""
11+
ip_address: "10.30.33.161"
12+
mtu: ""
13+
netmask: "255.255.255.252"
14+
outer_vlan: "2234"
15+
output_policy: "VIPSIP_POLICY_2048_OUT"
16+
prefixv6_length: ""
17+
proxy_arp: "no"
18+
unicast_source: "rx"
19+
vrf: "CLIENT_VOIP:1234"
20+
- access_group_in: ""
21+
access_group_out: ""
22+
bandwidth: "100000"
23+
description: "PEOPLE | 100M"
24+
inner_vlan: "27"
25+
input_policy: "DATA_POLICY_100M_V1"
26+
interface: "GigabitEthernet2/0/4.223427"
27+
ipv6_address: ""
28+
ip_address: "10.53.8.241"
29+
mtu: ""
30+
netmask: "255.255.255.252"
31+
outer_vlan: "2234"
32+
output_policy: "DATA_POLICY_100M_OUT"
33+
prefixv6_length: ""
34+
proxy_arp: "no"
35+
unicast_source: "rx"
36+
vrf: "CLIENT_VOIP:1234"
37+
- access_group_in: "iACL"
38+
access_group_out: "oACL"
39+
bandwidth: "2048"
40+
description: "AVENIDA | 100M"
41+
inner_vlan: "36"
42+
input_policy: "VIPSIP_POLICY_2048_V1"
43+
interface: "GigabitEthernet2/0/4.223436"
44+
ipv6_address: ""
45+
ip_address: "10.39.246.29"
46+
mtu: ""
47+
netmask: "255.255.255.252"
48+
outer_vlan: "2234"
49+
output_policy: "VIPSIP_POLICY_2048_OUT"
50+
prefixv6_length: ""
51+
proxy_arp: "no"
52+
unicast_source: "rx"
53+
vrf: "CLIENT_VOIP:1234"
54+
- access_group_in: "iACL"
55+
access_group_out: "ACL_OUTPUT"
56+
bandwidth: "2048"
57+
description: "MONTE EVEREST | 1500K"
58+
inner_vlan: "49"
59+
input_policy: "VIPSIP_POLICY_2048_V1"
60+
interface: "GigabitEthernet2/0/4.223449"
61+
ipv6_address: ""
62+
ip_address: "10.30.33.41"
63+
mtu: ""
64+
netmask: "255.255.255.252"
65+
outer_vlan: "2234"
66+
output_policy: "VIPSIP_POLICY_2048_OUT"
67+
prefixv6_length: ""
68+
proxy_arp: "no"
69+
unicast_source: "tx"
70+
vrf: "CLIENT_VOIP:1234"
71+
- access_group_in: "ACL_INPUT"
72+
access_group_out: ""
73+
bandwidth: "1000"
74+
description: "TEST PASS| 100M"
75+
inner_vlan: "1011"
76+
input_policy: "VIPSIP_POLICY_1000_V1"
77+
interface: "GigabitEthernet2/0/4.223478"
78+
ipv6_address: "FE80:A8::2DA::1689"
79+
ip_address: "10.39.18.217"
80+
mtu: "9096"
81+
netmask: "255.255.255.252"
82+
outer_vlan: "2234"
83+
output_policy: "VIPSIP_POLICY_1000_OUT"
84+
prefixv6_length: "126"
85+
proxy_arp: "no"
86+
unicast_source: "rx"
87+
vrf: "CLIENT_VOIP:1234"
88+
- access_group_in: ""
89+
access_group_out: "oACL"
90+
bandwidth: "800"
91+
description: "BLUE | 800K"
92+
inner_vlan: "1020"
93+
input_policy: "VIPSIP_POLICY_800_V1"
94+
interface: "GigabitEthernet2/0/4.22341020"
95+
ipv6_address: ""
96+
ip_address: "10.30.33.197"
97+
mtu: "1546"
98+
netmask: "255.255.255.252"
99+
outer_vlan: "2234"
100+
output_policy: "VIPSIP_POLICY_800_OUT"
101+
prefixv6_length: ""
102+
proxy_arp: "no"
103+
unicast_source: "rx"
104+
vrf: "CLIENT_VOIP:1234"

0 commit comments

Comments
 (0)