Page MenuHomePhabricator

support for more 'show ip route' commands
In progress, LowPublicFEATURE REQUEST


The show ip route command should support more commands, like FRR does from vtysh terminal.


vyos@vyos-gns3:~$ show ip route tag 20

  Invalid command: show ip route tag [20]

vyos@vyos-gns3:~$ vtysh

Hello, this is FRRouting (version 7.0.1-20190820-04-g047efd6).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

vyos-gns3# show ip route tag 20
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route

B>* [20/0] via, tun0, 00:11:31
B>* [20/0] via, tun1, 00:11:30


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

olofl created this task.Oct 10 2019, 11:29 AM
hagbard claimed this task.Oct 10 2019, 3:49 PM

@olofl How do you set the tag? via CLI?

olofl added a comment.Oct 10 2019, 5:21 PM

@hagbard via a route-map for example. set policy route-map TAG rule 10 set tag 33

Also show ip route json works in VyOS shell, however, there is no tab completion hint for it.

The cli part for the routing suite is up for rewrite, json is only working because it's supported by frr and the cli doesn't filter it. I think getting show ip route tag 20 working shouldn't be a big deal, but I try to avoid to add too much to the cli, will make just the rewrite way harder.

pasik added a subscriber: pasik.Oct 14 2019, 5:14 PM
hagbard moved this task from In Progress to Backlog on the VyOS 1.2 Crux board.Oct 18 2019, 4:23 PM
syncer triaged this task as Low priority.Nov 10 2019, 7:27 PM
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.