frr icon indicating copy to clipboard operation
frr copied to clipboard

unhelpful messages on some route related bgp comands

Open XANi opened this issue 9 months ago • 3 comments

Description

Currently not specifying address family in some of the commands will lead to unhelpful error message

d1-r1# show bgp vrf core neighbors  37.8.208.25 filtered-routes 
% No such neighbor or address family
d1-r1# show bgp vrf core neighbors  37.8.208.25 received-routes 
% No such neighbor or address family
d1-r1# show bgp vrf core neighbors  37.8.208.25 routes 
% No such neighbor or address family

while actual message for neighbor not existing is correct

d1-r1# show bgp vrf core neighbors  1.2.3.4 routes 
No such neighbor in this view/vrf

Version

FRRouting 10.5.1 (d1-r1) on Linux(6.12.63+deb13-amd64).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--sbindir=/usr/lib/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-rpki' '--enable-scripting' '--enable-pim6d' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'LIBS= -latomic' 'PYTHON=python3'

How to reproduce

  • Be a new user
  • use tab completion
  • show bgp vrf core neighbors 37.8.208.25 "oh there is received-routes option here where I was looking for"
  • confusion as neither BIRD nor Juniper nor Cisco needed to have protocol specified there

Expected behavior

One of:

  • Display info about all address families for the peer
  • If peer have single one, display that address family, else fail with error about it missing
  • allow adding ipv4 at the end so at least fixing the mistake doesn't require going back
  • make ipv4 default address family if not specified
  • Make message precise (peer exists, it's address family that's missing)

in subjective order of preference

It's a bit confusing because most other commands don't require specifying protocol

Actual behavior

d1-r1# show bgp vrf core neighbors  37.8.208.25 routes 
% No such neighbor or address family

when neighbour exists

Additional context

No response

Checklist

  • [x] I have searched the open issues for this bug.
  • [x] I have not included sensitive information in this report.

XANi avatar Feb 13 '26 16:02 XANi

@XANi I would love to tackle this issue?

Demiserular avatar Feb 15 '26 14:02 Demiserular

This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.

github-actions[bot] avatar Aug 15 '26 01:08 github-actions[bot]

This issue will be automatically closed in the specified period unless there is further activity.

frrbot avatar Aug 15 '26 01:08 frrbot