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 cisco_ios_show_ip_eigrp_topology.template #445

Merged
merged 11 commits into from
Oct 7, 2019
6 changes: 5 additions & 1 deletion templates/cisco_ios_show_ip_eigrp_topology.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Value Required CODE (\S+)
Value ROUTE (\d+\.\d+\.\d+\.\d+)
Value MASK (\d+)
Value SUCCESSORS (\d+)
Value FD (\d+)
Value FD (\d+|Inaccessible)
Value TAG (\d+)
Value List ADV_ROUTER (\d+\.\d+\.\d+\.\d+|\w+)
Value List OUT_INTERFACE (\S+)
Value SOURCE (R\S+)

Start
# Captures Process ID and Router ID
Expand All @@ -28,6 +29,8 @@ Start
Gateway
# This captures the advertising router and outgoing interface
^\s+via\s+${ADV_ROUTER},\s+${OUT_INTERFACE}
# This captures the scenarion where the route is injected via Redistribution.
^\s+via\s+${SOURCE}
# 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
Expand All @@ -44,3 +47,4 @@ Gateway
^\s*$$
# This will throw an error if there are no matches
^. -> Error

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ parsed_sample:
fd: "264448"
tag: ""
successors: "2"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -22,6 +23,7 @@ parsed_sample:
fd: "1024"
tag: ""
successors: "1"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -33,6 +35,7 @@ parsed_sample:
fd: "5632"
tag: "53471"
successors: "2"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -44,6 +47,7 @@ parsed_sample:
fd: "130816"
tag: ""
successors: "1"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -55,6 +59,7 @@ parsed_sample:
fd: "128768"
tag: ""
successors: "1"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -66,6 +71,7 @@ parsed_sample:
fd: "768"
tag: ""
successors: "1"
source: ""

- router_id: "10.255.11.6"
code: "P"
Expand All @@ -77,3 +83,52 @@ parsed_sample:
fd: "128768"
tag: ""
successors: "4"
source: ""

- router_id: "10.2.0.1"
code: "P"
out_interface: ['GigabitEthernet1/1', 'GigabitEthernet1/2']
route: "10.50.20.4"
mask: "32"
adv_router: ['10.4.0.1', '10.4.0.2']
process_id: "65000"
fd: "128039168"
tag: ""
successors: "2"
source: ""

- router_id: "10.2.0.1"
code: "P"
out_interface: ['GigabitEthernet1/1', 'GigabitEthernet1/2']
route: "10.50.21.0"
mask: "27"
adv_router: ['10.4.0.1', '10.4.0.2']
process_id: "65000"
fd: "Inaccessible"
tag: "6508497"
successors: "0"
source: ""

- router_id: "10.2.0.1"
code: "P"
out_interface: []
route: "10.50.75.0"
mask: "24"
adv_router: []
process_id: "65000"
fd: "2816"
tag: ""
successors: "1"
source: "Rstatic"

- router_id: "10.2.0.1"
code: "P"
out_interface: []
route: "10.50.23.92"
mask: "30"
adv_router: []
process_id: "65000"
fd: "3840256"
tag: "5507497"
successors: "1"
source: "Redistributed"
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ P 10.255.11.4/32, 4 successors, FD is 128768
via 10.254.4.10, TenGigabitEthernet4/4
via 10.254.4.14, TenGigabitEthernet4/5
via 10.254.54.6, TenGigabitEthernet1/3

IP-EIGRP Topology Table for AS(65000)/ID(10.2.0.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status

P 10.50.20.4/32, 2 successors, FD is 128039168
via 10.4.0.1, GigabitEthernet1/1
via 10.4.0.2, GigabitEthernet1/2
P 10.50.21.0/27, 0 successors, FD is Inaccessible, tag is 6508497
via 10.4.0.1, GigabitEthernet1/1
via 10.4.0.2, GigabitEthernet1/2
P 10.50.75.0/24, 1 successors, FD is 2816
via Rstatic
P 10.50.23.92/30, 1 successors, FD is 3840256, tag is 5507497
via Redistributed