-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG FIX: cisco_ios_show_ip_bgp unable to parse routes (#340)
OS Version 16.6.4 has an additional space after the route status codes. This fix allows for additional space character. New test files were added with the additional output format
- Loading branch information
1 parent
6a47417
commit 31346af
Showing
3 changed files
with
102 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
parsed_sample: | ||
- as_path: '' | ||
local_pref: '' | ||
metric: '0' | ||
network: 10.1.0.0/16 | ||
next_hop: 0.0.0.0 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: ' ' | ||
status: '*' | ||
weight: '32768' | ||
- as_path: '' | ||
local_pref: '' | ||
metric: '0' | ||
network: 10.2.0.0/16 | ||
next_hop: 0.0.0.0 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: ' ' | ||
status: '*' | ||
weight: '32768' | ||
- as_path: '' | ||
local_pref: '' | ||
metric: '0' | ||
network: 10.3.0.0/16 | ||
next_hop: 0.0.0.0 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: ' ' | ||
status: '*' | ||
weight: '32768' | ||
- as_path: '' | ||
local_pref: '' | ||
metric: '0' | ||
network: 10.4.0.0/16 | ||
next_hop: 0.0.0.0 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: ' ' | ||
status: '*' | ||
weight: '32768' | ||
- as_path: '' | ||
local_pref: '100' | ||
metric: '0' | ||
network: 10.11.0.0/16 | ||
next_hop: 10.0.0.1 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: 'i' | ||
status: '*' | ||
weight: '0' | ||
- as_path: '' | ||
local_pref: '100' | ||
metric: '0' | ||
network: 10.12.0.0/16 | ||
next_hop: 10.0.0.1 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: 'i' | ||
status: '*' | ||
weight: '0' | ||
- as_path: '' | ||
local_pref: '100' | ||
metric: '0' | ||
network: 10.13.0.0/16 | ||
next_hop: 10.0.0.1 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: 'i' | ||
status: '*' | ||
weight: '0' | ||
- as_path: '' | ||
local_pref: '100' | ||
metric: '0' | ||
network: 10.14.0.0/16 | ||
next_hop: 10.0.0.1 | ||
origin: 'i' | ||
path_selection: '>' | ||
route_source: 'i' | ||
status: '*' | ||
weight: '0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
BGP table version is 17, local router ID is 10.0.0.0 | ||
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | ||
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, | ||
x best-external, a additional-path, c RIB-compressed, | ||
t secondary path, | ||
Origin codes: i - IGP, e - EGP, ? - incomplete | ||
RPKI validation codes: V valid, I invalid, N Not found | ||
|
||
Network Next Hop Metric LocPrf Weight Path | ||
*> 10.1.0.0/16 0.0.0.0 0 32768 i | ||
*> 10.2.0.0/16 0.0.0.0 0 32768 i | ||
*> 10.3.0.0/16 0.0.0.0 0 32768 i | ||
*> 10.4.0.0/16 0.0.0.0 0 32768 i | ||
*>i 10.11.0.0/16 10.0.0.1 0 100 0 i | ||
*>i 10.12.0.0/16 10.0.0.1 0 100 0 i | ||
*>i 10.13.0.0/16 10.0.0.1 0 100 0 i | ||
*>i 10.14.0.0/16 10.0.0.1 0 100 0 i |