Cisco: Fix show bgp ipv4/6 uni neigh rec parser
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 220.127.116.11 received-r BGP table version is 55601421, local router ID is 18.104.22.168 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 * 22.214.171.124 126.96.36.199 0 25192 i * 188.8.131.52 184.108.40.206 0 25192 20701 i ^^^^^ Thanks to email@example.com for pointing it out.
Showing with 20 additions and 8 deletions