Page MenuHomeVyOS Platform

Missing command `show ip bgp scan` appears in command completion
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ show ip bgp scan
% Unknown command: show ip bgp scan

Details

Difficulty level
Easy (less than an hour)
Version
1.2.1
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Perfectly compatible

Event Timeline

c-po triaged this task as Low priority.
c-po created this task.
c-po updated the task description. (Show Details)
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).
dmbaturin added a subscriber: dmbaturin.

This command was removed from Quagga five years ago and never made it to FRR.

This is not a "bug" - we pass any argument to show ip bgp down to FRR.

Probably the implementation should be changed and remove the /opt/vyatta/share/vyatta-op/templates/show/ip/bgp/node.tag/ directory which is responsible for this and add possible missing show commands to the CLI

[email protected]:~$ show ip bgp scan
% Unknown command: show ip bgp scan
[email protected]:~$ show ip bgp foo
% Unknown command: show ip bgp foo

Viacheslav seems to have migrated a good portion of Quagga show commands to the XML template format a while ago and the remaining completion file for ip bgp scan also got deleted then. I can see that the useless command completion for it is still there on 1.2.5 LTS but it's gone from the nightly builds.

I have removed show ip bgp scan for the upcoming 1.2.6 release.

@erkin it looks like the same applies to:

[email protected]:~$ show ip bgp rsclient summary
% Unknown command: show ip bgp rsclient summary

can you verify this?

Yup, the same situation: It's there on LTS but not on nightly. Also nonexistent functionality on frr, so it can go from the completions too. (Although the CLI files are still in the vyatta-op-quagga repo.)
However it still seems to be stuck in reset on nightly:

$ reset ip bgp foo rsclient
% Unknown command:  clear ip bgp foo rsclient
c-po changed the task status from Wontfix to Resolved.Aug 30 2020, 7:03 AM
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Issues in third-party code.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
erkin renamed this task from Unknown command: show ip bgp scan to Missing command `show ip bgp scan` appears in command completion.Sep 5 2020, 12:04 PM