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

replace ROUTE with NETWORK in cisco_ios_show_ip_eigrp_topology #1466

Merged
merged 1 commit into from
Jun 21, 2024
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
@@ -1,7 +1,7 @@
Value Filldown PROCESS_ID (\d+)
Value Filldown ROUTER_ID (\d+\.\d+\.\d+\.\d+)
Value Required CODE (\S+)
Value ROUTE (\d+\.\d+\.\d+\.\d+)
Value NETWORK (\d+\.\d+\.\d+\.\d+)
Value PREFIX_LENGTH (\d+)
Value SUCCESSORS (\d+)
Value FD (\d+|Inaccessible)
Expand All @@ -20,9 +20,9 @@ Start
# Skips over the definitions for the codes
^\s*\S\s-\s\S+
# Matches a route and captures if ${TAG} is use for the route and then moves to Gateway section
^${CODE}\s+${ROUTE}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD},\s+tag\s+is\s+${TAG} -> Gateway
^${CODE}\s+${NETWORK}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD},\s+tag\s+is\s+${TAG} -> Gateway
# Matches a route and captures it and then moves to Gateway section
^${CODE}\s+${ROUTE}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD} -> Gateway
^${CODE}\s+${NETWORK}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD} -> Gateway
# If it doesn't match anything above, this just acknowledges a new line
^\s*$$
# This will throw an error if there are no matches
Expand All @@ -38,8 +38,8 @@ Gateway
# This will not capture anything but if it encounters another route, it will continue and record what it already captured
^\S+\s+(?:\d+(?:\.|)){4}/\d+,\s+\d+\s+successors -> Continue.Record
# These are the same as above and capture the next set of routes
^${CODE}\s+${ROUTE}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD},\s+tag\s+is\s+${TAG}
^${CODE}\s+${ROUTE}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD}
^${CODE}\s+${NETWORK}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD},\s+tag\s+is\s+${TAG}
^${CODE}\s+${NETWORK}/${PREFIX_LENGTH},\s+${SUCCESSORS}\s+successors,\s+FD\s+is\s+${FD}
# If it encounters another AS/Router ID it will continue and record what it just captured
^.+AS\(\d+\)/ID -> Continue.Record
# If it encounters it again, it will continue, but clear all captured data other than Filldown Values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ parsed_sample:
- "10.254.11.33"
code: "P"
fd: "264448"
network: "66.128.208.232"
out_interface:
- "TenGigabitEthernet1/1"
- "TenGigabitEthernet2/1"
prefix_length: "32"
process_id: "100"
route: "66.128.208.232"
router_id: "10.255.11.6"
source: ""
successors: "2"
Expand All @@ -23,11 +23,11 @@ parsed_sample:
- "10.254.6.14"
code: "P"
fd: "1024"
network: "10.254.6.8"
out_interface:
- "Port-channel10"
prefix_length: "30"
process_id: "100"
route: "10.254.6.8"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -39,12 +39,12 @@ parsed_sample:
- "10.254.11.33"
code: "P"
fd: "5632"
network: "67.230.223.128"
out_interface:
- "TenGigabitEthernet1/1"
- "TenGigabitEthernet2/1"
prefix_length: "28"
process_id: "100"
route: "67.230.223.128"
router_id: "10.255.11.6"
source: ""
successors: "2"
Expand All @@ -55,11 +55,11 @@ parsed_sample:
- "10.254.10.34"
code: "P"
fd: "130816"
network: "10.255.10.5"
out_interface:
- "GigabitEthernet9/29"
prefix_length: "32"
process_id: "100"
route: "10.255.10.5"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -70,11 +70,11 @@ parsed_sample:
- "10.254.1.34"
code: "P"
fd: "128768"
network: "10.255.1.14"
out_interface:
- "Port-channel3"
prefix_length: "32"
process_id: "100"
route: "10.255.1.14"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -85,11 +85,11 @@ parsed_sample:
- "10.254.2.22"
code: "P"
fd: "768"
network: "10.254.2.12"
out_interface:
- "TenGigabitEthernet3/3"
prefix_length: "30"
process_id: "100"
route: "10.254.2.12"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -107,6 +107,7 @@ parsed_sample:
- "10.254.54.6"
code: "P"
fd: "128768"
network: "10.255.11.4"
out_interface:
- "TenGigabitEthernet1/4"
- "TenGigabitEthernet1/6"
Expand All @@ -118,7 +119,6 @@ parsed_sample:
- "TenGigabitEthernet1/3"
prefix_length: "32"
process_id: "100"
route: "10.255.11.4"
router_id: "10.255.11.6"
source: ""
successors: "4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ parsed_sample:
- "10.254.11.33"
code: "P"
fd: "264448"
network: "66.128.208.232"
out_interface:
- "TenGigabitEthernet1/1"
- "TenGigabitEthernet2/1"
prefix_length: "32"
process_id: "100"
route: "66.128.208.232"
router_id: "10.255.11.6"
source: ""
successors: "2"
Expand All @@ -23,11 +23,11 @@ parsed_sample:
- "10.254.6.14"
code: "P"
fd: "1024"
network: "10.254.6.8"
out_interface:
- "Port-channel10"
prefix_length: "30"
process_id: "100"
route: "10.254.6.8"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -39,12 +39,12 @@ parsed_sample:
- "10.254.11.33"
code: "P"
fd: "5632"
network: "67.230.223.128"
out_interface:
- "TenGigabitEthernet1/1"
- "TenGigabitEthernet2/1"
prefix_length: "28"
process_id: "100"
route: "67.230.223.128"
router_id: "10.255.11.6"
source: ""
successors: "2"
Expand All @@ -55,11 +55,11 @@ parsed_sample:
- "10.254.10.34"
code: "P"
fd: "130816"
network: "10.255.10.5"
out_interface:
- "GigabitEthernet9/29"
prefix_length: "32"
process_id: "100"
route: "10.255.10.5"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -70,11 +70,11 @@ parsed_sample:
- "10.254.1.34"
code: "P"
fd: "128768"
network: "10.255.1.14"
out_interface:
- "Port-channel3"
prefix_length: "32"
process_id: "100"
route: "10.255.1.14"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -85,11 +85,11 @@ parsed_sample:
- "10.254.2.22"
code: "P"
fd: "768"
network: "10.254.2.12"
out_interface:
- "TenGigabitEthernet3/3"
prefix_length: "30"
process_id: "100"
route: "10.254.2.12"
router_id: "10.255.11.6"
source: ""
successors: "1"
Expand All @@ -107,6 +107,7 @@ parsed_sample:
- "10.254.54.6"
code: "P"
fd: "128768"
network: "10.255.11.4"
out_interface:
- "TenGigabitEthernet1/4"
- "TenGigabitEthernet1/6"
Expand All @@ -118,7 +119,6 @@ parsed_sample:
- "TenGigabitEthernet1/3"
prefix_length: "32"
process_id: "100"
route: "10.255.11.4"
router_id: "10.255.11.6"
source: ""
successors: "4"
Expand All @@ -130,12 +130,12 @@ parsed_sample:
- "10.4.0.2"
code: "P"
fd: "128039168"
network: "10.50.20.4"
out_interface:
- "GigabitEthernet1/1"
- "GigabitEthernet1/2"
prefix_length: "32"
process_id: "65000"
route: "10.50.20.4"
router_id: "10.2.0.1"
source: ""
successors: "2"
Expand All @@ -147,12 +147,12 @@ parsed_sample:
- "10.4.0.2"
code: "P"
fd: "Inaccessible"
network: "10.50.21.0"
out_interface:
- "GigabitEthernet1/1"
- "GigabitEthernet1/2"
prefix_length: "27"
process_id: "65000"
route: "10.50.21.0"
router_id: "10.2.0.1"
source: ""
successors: "0"
Expand All @@ -162,10 +162,10 @@ parsed_sample:
adv_router: []
code: "P"
fd: "2816"
network: "10.50.75.0"
out_interface: []
prefix_length: "24"
process_id: "65000"
route: "10.50.75.0"
router_id: "10.2.0.1"
source: "Rstatic"
successors: "1"
Expand All @@ -175,10 +175,10 @@ parsed_sample:
adv_router: []
code: "P"
fd: "3840256"
network: "10.50.23.92"
out_interface: []
prefix_length: "30"
process_id: "65000"
route: "10.50.23.92"
router_id: "10.2.0.1"
source: "Redistributed"
successors: "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ parsed_sample:
- "Connected"
code: "P"
fd: "128256"
network: "172.16.0.1"
out_interface:
- "Loopback0"
prefix_length: "32"
process_id: "1"
route: "172.16.0.1"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -23,11 +23,11 @@ parsed_sample:
- "192.168.100.1"
code: "P"
fd: "130816"
network: "172.16.0.2"
out_interface:
- "GigabitEthernet0/0"
prefix_length: "32"
process_id: "1"
route: "172.16.0.2"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -40,11 +40,11 @@ parsed_sample:
- "192.168.100.1"
code: "P"
fd: "3072"
network: "10.2.2.0"
out_interface:
- "GigabitEthernet0/0"
prefix_length: "24"
process_id: "1"
route: "10.2.2.0"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -57,11 +57,11 @@ parsed_sample:
- "192.168.100.1"
code: "P"
fd: "3072"
network: "192.168.100.4"
out_interface:
- "GigabitEthernet0/0"
prefix_length: "31"
process_id: "1"
route: "192.168.100.4"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -72,11 +72,11 @@ parsed_sample:
- "Connected"
code: "P"
fd: "2816"
network: "192.168.100.0"
out_interface:
- "GigabitEthernet0/0"
prefix_length: "31"
process_id: "1"
route: "192.168.100.0"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -87,11 +87,11 @@ parsed_sample:
- "Connected"
code: "P"
fd: "2816"
network: "192.168.100.2"
out_interface:
- "GigabitEthernet0/1"
prefix_length: "31"
process_id: "1"
route: "192.168.100.2"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand All @@ -104,11 +104,11 @@ parsed_sample:
- "192.168.100.1"
code: "P"
fd: "3072"
network: "192.168.100.6"
out_interface:
- "GigabitEthernet0/0"
prefix_length: "31"
process_id: "1"
route: "192.168.100.6"
router_id: "172.16.0.1"
source: ""
successors: "1"
Expand Down
Loading