Page MenuHomeVyOS Platform

"show bgp neighbors ... advertised-routes" and some other commands fail for IPv4 neighbors
Open, Requires assessmentPublicBUG

Description

When I try to get more details, like for example the advertised routes, I get an error.

[email protected]:~$ show bgp neighbors 127.0.0.1 advertised-routes
% No such neighbor or address family

This applies to all sub-functions of show bgp neighbors 127.0.0.1 ...
"show bgp neighbors 127.0.0.1" as such however, works.

[email protected]:~$ show bgp neighbors 127.0.0.1
BGP neighbor is 127.0.0.1, remote AS 1111, local AS 2222, external link
  Local Role: undefined
  Remote Role: undefined
  BGP version 4, remote router ID 127.0.0.1, local router ID 1.1.1.1
  BGP state = Established, up for 00:19:46
  Last read 00:00:00, Last write 00:00:16
.
.
.

Also the BGP session as such works fine,

[email protected]:~$ show bgp summary
IPv4 Unicast Summary (VRF default):
BGP router identifier 127.0.0.2, local AS number 11111 vrf-id 0
BGP table version 904637
RIB entries 1643803, using 301 MiB of memory
Peers 1, using 724 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
127.0.0.1 4      11111    249048        46        0    0    0 00:21:26       896813        1 N/A

Also the error applies only on IPv4 sessions.
IPv6 sessions work fine.

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202212080318
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

use the next syntax

show bgp ipv4 neighbors x.x.x.x advertised-routes

This works,
but if this is the new syntax the cli needs some cleanup.

show bgp neighbors 127.0.0.1 advertised-routes

Is still offered by the autocomplete and works for ipv6.

dmbaturin renamed this task from Show ipv4 neighbor details fails to "show bgp neighbors ... advertised-routes" and some other commands fail for IPv4 neighbors.Jan 5 2023, 2:22 PM