• Tomas Hlavacek's avatar
    Cisco: Fix show bgp ipv4/6 uni neigh rec parser · 0eb449fc
    Tomas Hlavacek authored
    Fix a problem with a false assumption previously made on length of
    the first field in output of a command show bgp ipv4/6 unicast neighbor
    <IP> received-routes. On newer IOSes it is 5-chars long (because of RPKI flags)
    but on older ones it is only 4 chars.
    
    Example:
    
    marge>sh bgp ipv4 uni neigh 91.210.16.3 received-r
    BGP table version is 55601421, local router ID is 217.31.48.123
    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,
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
    
         Network          Next Hop            Metric LocPrf Weight Path
     *   192.88.99.0      91.210.16.3                            0 25192 i
     *   193.17.47.0      91.210.16.3                            0 25192 20701 i
    ^^^^^
    
    Thanks to julianeble@yahoo.com.br for pointing it out.
    0eb449fc
Name
Last commit
Last update
images Loading commit data...
templates Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
config.py.example Loading commit data...
defaults.py Loading commit data...
style.css Loading commit data...
tests.py Loading commit data...
tinybox.js Loading commit data...
ulg-cron.py Loading commit data...
ulg.py Loading commit data...
ulgbird.py Loading commit data...
ulgcisco.py Loading commit data...
ulggraph.py Loading commit data...
ulgjuniper.py Loading commit data...
ulgmodel.py Loading commit data...
whois.py Loading commit data...