Skip to content

Fix XR7 parse error where ARP EVPN line exists #2092

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

Merged
merged 2 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ Start
^\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+ARP\s+EVPN.*$$
^\s+ICMP\s+redirects.*$$
^\s+ICMP\s+unreachables.*$$
^\s+ICMP\s+mask.*$$
^\s+Table.*$$
^\s+mLACP.*$$
^IP\s+unicast\s+RPF\s+check\s+is\s+${RPF_CHECK}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Mon Mar 31 18:49:52.390 UTC
Bundle-Ether123 is Down, ipv4 protocol is Down
Vrf is default (vrfid 0x60000000)
Internet protocol processing disabled
MgmtEth0/RP0/CPU0/0 is Up, ipv4 protocol is Up
Vrf is MGMT (vrfid 0x60000001)
Internet address is 192.168.254.130/24
MTU is 1514 (1500 is available to IP)
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound common access list is not set, access list is not set
Proxy ARP is disabled
ARP EVPN Proxy is disabled
ICMP redirects are never sent
ICMP unreachables are always sent
ICMP mask replies are never sent
Table Id is 0xe0000001
GigabitEthernet0/0/0/0 is Shutdown, ipv4 protocol is Down
Vrf is default (vrfid 0x60000000)
Internet protocol processing disabled
GigabitEthernet0/0/0/1 is Shutdown, ipv4 protocol is Down
Vrf is default (vrfid 0x60000000)
Internet protocol processing disabled
GigabitEthernet0/0/0/1.100 is Shutdown, ipv4 protocol is Down
Vrf is default (vrfid 0x60000000)
Internet protocol processing disabled
GigabitEthernet0/0/0/2 is Shutdown, ipv4 protocol is Down
Vrf is default (vrfid 0x60000000)
Internet protocol processing disabled
GigabitEthernet0/0/0/3 is Up, ipv4 protocol is Up
Vrf is MGMT (vrfid 0x60000001)
Internet protocol processing disabled
114 changes: 114 additions & 0 deletions tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
parsed_sample:
- interface: "Bundle-Ether123"
in_acl: ""
ip_address: ""
ip_mtu: ""
link_status: "Down"
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"
- interface: "MgmtEth0/RP0/CPU0/0"
in_acl: "not set, access list is not set"
ip_address: "192.168.254.130"
ip_mtu: "1500"
link_status: "Up"
mtu: "1514"
multicast_groups: []
out_acl: "not set"
prefix_length: "24"
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "MGMT"
vrf_id: "0x60000001"
- 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"
- interface: "GigabitEthernet0/0/0/1"
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"
- interface: "GigabitEthernet0/0/0/1.100"
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"
- interface: "GigabitEthernet0/0/0/2"
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"
- interface: "GigabitEthernet0/0/0/3"
in_acl: ""
ip_address: ""
ip_mtu: ""
link_status: "Up"
mtu: ""
multicast_groups: []
out_acl: ""
prefix_length: ""
protocol: "ipv4"
protocol_status: "Up"
rpf_check: ""
sec_ip_address: []
sec_prefix_length: []
vrf: "MGMT"
vrf_id: "0x60000001"
Loading