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