Page MenuHomePhabricator

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

Description

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

Example:

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>* 172.16.251.0/24 [20/0] via 172.24.1.218, tun0, 00:11:31
B>* 172.16.253.0/24 [20/0] via 172.24.1.226, tun1, 00:11:30

Details

Difficulty level
Unknown (require assessment)
Version
-
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.Mon, Oct 14, 5:14 PM
hagbard moved this task from In Progress to Backlog on the VyOS 1.2 Crux board.Fri, Oct 18, 4:23 PM
syncer triaged this task as Low priority.Sun, Nov 10, 7:27 PM
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.