Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template: cisco_xr_show_ipv4_interface.textfsm #1776

Merged
merged 34 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9efe00c
Update index
jorlandobr Jul 22, 2024
8bf47af
Update cisco_xr_show_ipv4_interface.textfsm
jorlandobr Jul 22, 2024
f9eee7b
Create cisco_xr_show_ipv4_interface4.raw
jorlandobr Jul 22, 2024
5f18eac
Create cisco_xr_show_ipv4_interface4.yaml
jorlandobr Jul 22, 2024
7d36189
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
08cc711
Update cisco_xr_show_ipv4_interface2.yml
jorlandobr Jul 22, 2024
88527b1
Update cisco_xr_show_ipv4_interface1.yml
jorlandobr Jul 22, 2024
ffe315b
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
6a4a157
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
319327c
Update cisco_xr_show_ipv4_interface1.yml
jorlandobr Jul 22, 2024
31a8615
Update cisco_xr_show_ipv4_interface2.yml
jorlandobr Jul 22, 2024
e69bfdf
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
ddde534
Update cisco_xr_show_ipv4_interface4.yaml
jorlandobr Jul 22, 2024
df704df
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
7b548ce
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
598b0da
Update cisco_xr_show_ipv4_interface2.yml
jorlandobr Jul 22, 2024
7d319d5
Update cisco_xr_show_ipv4_interface4.yaml
jorlandobr Jul 22, 2024
fc0ec42
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
3fe6477
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
532cd6a
Update cisco_xr_show_ipv4_interface4.yaml
jorlandobr Jul 22, 2024
2a3baea
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
b787168
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
997c546
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
1f9a3d8
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
5e73dfb
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
c2089da
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
e27d8a5
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
1d06e17
Rename cisco_xr_show_ipv4_interface4.yaml to cisco_xr_show_ipv4_inter…
jorlandobr Jul 22, 2024
352d951
Update cisco_xr_show_ipv4_interface1.yml
jorlandobr Jul 22, 2024
6ed3bda
Update cisco_xr_show_ipv4_interface2.yml
jorlandobr Jul 22, 2024
9e461be
Update cisco_xr_show_ipv4_interface.yml
jorlandobr Jul 22, 2024
cf5afa0
Update cisco_xr_show_ipv4_interface1.yml
jorlandobr Jul 22, 2024
8a7cf77
Update cisco_xr_show_ipv4_interface2.yml
jorlandobr Jul 22, 2024
5f0b128
Update cisco_xr_show_ipv4_interface3.yml
jorlandobr Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions ntc_templates/templates/cisco_xr_show_ipv4_interface.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@ Value LINK_STATUS (\S+)
Value PROTOCOL (\S+)
Value PROTOCOL_STATUS (\S+)
Value VRF (\S+)
Value VRF_ID (\S+)
Value IP_ADDRESS (\S+?)
Value List SEC_IP_ADDRESS (\S+?)
Value PREFIX_LENGTH (\d*)
Value List SEC_PREFIX_LENGTH (\d*)
Value MTU (\d+)
Value IP_MTU (\d+)
Value List MULTICAST_GROUPS (\d+\.\d+\.\d+\.\d+)
Value OUT_ACL (.*)
Value IN_ACL (.*)
Value RPF_CHECK (\S+)


Start
^(Mon?)|(Tue?)|(Wed?)|(Thu?)|(Fri?)|(Sat?)|(Sun?)\s.*$$
^\S+\s+is -> Continue.Record
^${INTERFACE}\sis\s${LINK_STATUS},\s+${PROTOCOL}\sprotocol\sis\s${PROTOCOL_STATUS}.*$$
^\s+Vrf\sis\s${VRF}\s.*$$
^\s+Vrf\s+is\s+${VRF}\s+\(vrfid\s+${VRF_ID}\)
^\s+Internet\s+address\s+is\s+${IP_ADDRESS}/?${PREFIX_LENGTH}\s*$$
^\s+Secondary\s+address\s+${SEC_IP_ADDRESS}/?${SEC_PREFIX_LENGTH}\s*$$
^\s+Interface\s+is\s+unnumbered\S*
^\s+MTU\s+is\s+${MTU}\s+\(${IP_MTU}\s+is\s+available\s+to\s+IP\)
^\s+Helper.*$$
^\s+Multicast\s+reserved\s+groups\s+joined\:\s+${MULTICAST_GROUPS} -> Continue
Expand All @@ -23,15 +32,15 @@ Start
^\s+Multicast\s+reserved\s+groups\s+joined\:\s+ -> MULTICAST
^\s+Internet\s+protocol.*$$
^\s+Directed.*$$
^\s+Outgoing.*$$
^\s+Inbound.*$$
^\s+Outgoing\s+access\s+list\s+is\s+${OUT_ACL}
^\s+Inbound\s+(?:common)?\s+access\s+list\s+is\s+${IN_ACL}
^\s+Proxy.*$$
^\s+ICMP redirects.*$$
^\s+ICMP unreachables.*$$
^\s+ICMP mask.*$$
^\s+Table.*$$
^\s+mLACP.*$$
^IP\s+unicast\s+RPF.*$$
^IP\s+unicast\s+RPF\s+check\s+is\s+${RPF_CHECK}
^RPF\s+mode.*$$
^\s*$$
^. -> Error
Expand All @@ -50,4 +59,4 @@ MULTICAST
^\s+(?:\S+\s+){9}${MULTICAST_GROUPS} -> Continue
^\s+(?:\S+\s+){10}${MULTICAST_GROUPS} -> Continue
^.* -> Start
^. -> Error MULTICAST
^. -> Error MULTICAST
2 changes: 1 addition & 1 deletion ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ cisco_xr_show_interface_brief.textfsm, .*, cisco_xr, sh[[ow]] int[[erface]] br[[
cisco_xr_admin_show_platform.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] pla[[tform]]
cisco_xr_show_install_active.textfsm, .*, cisco_xr, sh[[ow]] install active
cisco_xr_show_ip_bgp_summary.textfsm, .*, cisco_xr, sh[[ow]] ip b[[gp]] s[[ummary]]
cisco_xr_show_ipv4_interface.textfsm, .*, cisco_xr, sh[[ow]] ip[[v4]] int[[erface]]
cisco_xr_show_ipv4_interface.textfsm, .*, cisco_xr, sh[[ow]] ip[[v4]](?: vrf \S+)? int[[erface]]
cisco_xr_show_ipv6_neighbors.textfsm, .*, cisco_xr, sh[[ow]] ipv6 ne[[ighbors]]
cisco_xr_show_isis_neighbors.textfsm, .*, cisco_xr, sh[[ow]] isis ne[[ighbors]]
cisco_xr_show_lldp_neighbors.textfsm, .*, cisco_xr, sh[[ow]] lld[[p]] neig[[hbors]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
parsed_sample:
- interface: "GigabitEthernet0/0/0/0"
in_acl: "not set, access list is not set"
ip_address: "10.2.0.2"
ip_mtu: "1500"
link_status: "Up"
Expand All @@ -10,11 +11,17 @@ parsed_sample:
- "224.0.0.1"
- "224.0.0.9"
- "224.0.0.10"
out_acl: "not set"
prefix_length: "30"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
- interface: "GigabitEthernet0/0/0/1"
in_acl: "not set, access list is not set"
ip_address: "10.0.7.1"
ip_mtu: "1500"
link_status: "Up"
Expand All @@ -24,7 +31,12 @@ parsed_sample:
- "224.0.0.1"
- "224.0.0.5"
- "224.0.0.6"
out_acl: "not set"
prefix_length: "30"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
---
parsed_sample:
- interface: "MgmtEth0/0/CPU0/0"
in_acl: "not set, access list is not set"
ip_address: "172.25.82.44"
ip_mtu: "1500"
link_status: "Up"
mtu: "1514"
multicast_groups:
- "224.0.0.2"
- "224.0.0.1"
out_acl: "not set"
prefix_length: "24"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
- interface: "GigabitEthernet0/0/0/0"
in_acl: ""
ip_address: ""
ip_mtu: ""
link_status: "Shutdown"
mtu: ""
multicast_groups: []
out_acl: ""
prefix_length: ""
protocol: "ipv4"
protocol_status: "Down"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
parsed_sample:
- interface: "TenGigE0/0/0/6"
in_acl: "not set"
ip_address: "10.1.1.1"
ip_mtu: "9202"
link_status: "Up"
Expand All @@ -12,23 +13,35 @@ parsed_sample:
- "224.0.0.6"
- "224.0.0.13"
- "224.0.0.22"
out_acl: "not set"
prefix_length: "31"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
- interface: "Bundle-Ether10.23"
in_acl: "not set"
ip_address: "10.1.1.7"
ip_mtu: "9100"
link_status: "Up"
mtu: "9118"
multicast_groups:
- "224.0.0.1"
- "224.0.0.6"
out_acl: "not set"
prefix_length: "31"
protocol: "ipv4"
protocol_status: "Down"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
- interface: "TenGigE0/5/0/2.3"
in_acl: "BLOCK"
ip_address: "10.2.2.1"
ip_mtu: "1500"
link_status: "Up"
Expand All @@ -38,7 +51,12 @@ parsed_sample:
- "224.0.0.1"
- "224.0.0.13"
- "224.0.0.22"
out_acl: "not set"
prefix_length: "30"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: "enabled"
sec_ip_address: []
sec_prefix_length: []
vrf: "default"
vrf_id: "0x60000000"
Loading
Loading