• 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.
    marge>sh bgp ipv4 uni neigh received-r
    BGP table version is 55601421, local router ID is
    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
     *                            0 25192 i
     *                            0 25192 20701 i
    Thanks to julianeble@yahoo.com.br for pointing it out.
ulgcisco.py 34.1 KB