mirror_frr/zebra
Thibaut Collet 7e0f48c75d vty: add command to get route with table, vrf and protocol
Today vtysh can show the ip/ip6 routes through several commands:
- show_route_cmd
- show_route_detail_cmd
- show_route_summary_cmd
- show_route_table_cmd
- show_route_table_vrf_cmd
- show_route_all_table_vrf_cmd

Each command has its own set of filter rules:
- show_route_cmd can filter by vrf, protocol, tag, ... but not by table
- show_route_table_cmd always filter by table
- show_route_table_vrf_cmd always filter by table and can filter by vrf
too
- show_route_all_table_vrf_cmd show all route in any table for a vrf (or
all)

To reduce the number of commands and provide a possibility to filter by
any key add possibility for the show_route_cmd to filter by table with a
specific value or all to get route in all tables.

Then the show_route_table_cmd, show_route_table_vrf_cmd and
show_route_all_table_vrf_cmd functions can be removed as they are covered
by the generic show_route_cmd function.

It is to be noted that when zebra is started by default, it is possible
to execute show ip route command with both vrf and table parameters,
whereas before the command was not displayed. This is due to the fact
that this combination is only permitted when zebra is launched with vrf
network namespace mode. There, if zebra is configured with vrf-lite
backend, then a vty error message informs the user that the combination
of both table and vrf is not possible.

Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
2020-02-11 17:07:47 +01:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
connected.c *: Convert connected_free to a double pointer 2019-11-02 16:13:44 -04:00
connected.h zebra: Do not use connection dest for bcast 2019-08-18 18:54:46 +02:00
debug.c zebra: include zebra nexthop debug in show runn 2020-01-21 09:26:44 -05:00
debug.h zebra: add a debug category for nexthops 2019-12-23 08:47:38 -05:00
if_ioctl_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
if_ioctl.c Revert "Ospf missing interface handling 2" 2019-06-23 19:46:39 -04:00
if_netlink.c Merge pull request #5614 from qlyoung/fix-zebra-zapi-crashes 2020-01-06 23:45:49 -03:00
if_netlink.h vrrpd: protodown macvlan in backup state 2019-05-17 00:27:08 +00:00
if_sysctl.c *: spelchek 2018-10-25 20:10:57 +02:00
interface.c zebra: send RA lifetime of 0 before ceasing to advertise RAs 2019-12-03 15:46:34 +00:00
interface.h zebra: knob to make ra retransmit interval rfc compliant 2019-11-22 18:40:20 +00:00
ioctl_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ioctl_solaris.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
ioctl.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ioctl.h zebra: removing old intf address code 2019-04-22 13:49:27 -04:00
ipforward_proc.c *: generously apply const 2019-12-02 15:01:29 +01:00
ipforward_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ipforward_sysctl.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ipforward.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
irdp_interface.c *: s/TRUE/true/, s/FALSE/false/ 2019-07-01 17:26:05 +00:00
irdp_main.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
irdp_packet.c zebra: remove bs irdp error code 2019-07-03 00:27:14 +00:00
irdp.h *: strip trailing whitespace 2019-09-30 16:44:43 +00:00
kernel_netlink.c zebra: Actually add the NLA_F_NESTED flag to our code 2020-01-10 15:13:36 -05:00
kernel_netlink.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
kernel_socket.c zebra: Use shorthand operator in ifm_read() 2020-02-04 20:12:17 +02:00
kernel_socket.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
label_manager.c zebra: Fix label manager memory leak 2020-01-15 08:18:50 -05:00
label_manager.h zebra: label manager refactor 2019-07-10 15:20:27 +02:00
main.c *: fix route map integration 2020-02-04 14:05:43 -03:00
Makefile
redistribute.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
redistribute.h zebra: revise redistribution delete to improve update case 2019-09-12 08:51:05 -04:00
rib.h lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
router-id.c zebra: add 'show router-id' 2019-12-17 15:05:56 -06:00
router-id.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
rt_netlink.c Merge pull request #5737 from mjstapp/zebra_disable_kern_nhs 2020-02-04 08:12:34 -05:00
rt_netlink.h zebra: Add functionality to parse RTM_NEWNEXTHOP and RTM_DELNEXTHOP messages 2019-10-25 11:13:36 -04:00
rt_socket.c zebra: BSD null routes were not being installed 2019-11-21 09:37:36 -05:00
rt.h zebra: Add base functionality for nexthop processing via the dataplane 2019-10-25 11:13:36 -04:00
rtadv.c zebra: disallow negative rtadv intvl, fix overflow 2020-01-03 20:26:09 -05:00
rtadv.h zebra: send RA lifetime of 0 before ceasing to advertise RAs 2019-12-03 15:46:34 +00:00
rtread_getmsg.c zebra: Update rib_add to take a nexthop ID 2019-10-25 11:13:37 -04:00
rtread_netlink.c zebra: evpn remote delete fetch local entry 2018-12-31 14:40:31 -08:00
rtread_sysctl.c zebra: evpn remote delete fetch local entry 2018-12-31 14:40:31 -08:00
rule_netlink.c zebra: Don't bother ref'ing ifp in zebra_pbr_rule 2019-10-15 15:39:49 -04:00
rule_netlink.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
rule_socket.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
sample_plugin.c zebra: Add a sample dataplane plugin module 2019-10-31 16:24:16 -04:00
subdir.am zebra: Handling of connection disconnect and connect with GR. 2020-01-30 10:26:04 -08:00
table_manager.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
table_manager.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
testrib.conf
zapi_msg.c zebra, lib: Remove return from void functions 2020-02-04 20:05:21 +02:00
zapi_msg.h zebra: revise redistribution delete to improve update case 2019-09-12 08:51:05 -04:00
zebra_dplane.c *: don't null after XFREE; XFREE does this itself 2020-02-03 11:22:13 -05:00
zebra_dplane.h zebra: support LSPs with multiple outgoing labels 2019-11-29 11:50:07 -03:00
zebra_errors.c zebra: default ns->info should be default zebra_ns 2019-11-15 12:33:35 -05:00
zebra_errors.h zebra: default ns->info should be default zebra_ns 2019-11-15 12:33:35 -05:00
zebra_fpm_dt.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_fpm_netlink.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_fpm_private.h Zebra: Build nelink message for RMAC updates 2019-06-17 12:05:38 -07:00
zebra_fpm_protobuf.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_fpm.c zebra: FPM should have a way of shutting down 2019-11-18 14:49:46 -05:00
zebra_gr.c zebra: Capabality and stale route handling for GR client. 2020-01-31 03:36:37 -08:00
zebra_l2.c zebra: Ensure master's ifname is known, even if slave comes up first 2019-08-13 16:29:40 +00:00
zebra_l2.h zebra: Ensure master's ifname is known, even if slave comes up first 2019-08-13 16:29:40 +00:00
zebra_memory.c zebra: use MTYPE_STATIC 2019-06-21 08:54:25 +02:00
zebra_memory.h zebra: use MTYPE_STATIC 2019-06-21 08:54:25 +02:00
zebra_mlag_private.c zebra: fix sign-compare warning in cumulus mlag 2019-12-11 11:41:54 +01:00
zebra_mlag_vty.c zebra: Do not build mlag protobuf support if version 3 is not avail 2019-12-15 09:37:51 -05:00
zebra_mlag_vty.h zebra: Do not build mlag protobuf support if version 3 is not avail 2019-12-15 09:37:51 -05:00
zebra_mlag.c *: remove null check before XFREE 2020-02-04 13:19:37 -05:00
zebra_mlag.h zebra: Do not build mlag protobuf support if version 3 is not avail 2019-12-15 09:37:51 -05:00
zebra_mpls_netlink.c zebra: convert PW updates to async dataplane 2019-01-25 10:45:57 -05:00
zebra_mpls_null.c zebra: convert PW updates to async dataplane 2019-01-25 10:45:57 -05:00
zebra_mpls_openbsd.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
zebra_mpls_vty.c bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool 2018-09-04 17:39:04 +00:00
zebra_mpls.c Merge pull request #5416 from mjstapp/re_nhe_pointer 2019-12-04 14:11:04 -05:00
zebra_mpls.h zebra: support LSPs with multiple outgoing labels 2019-11-29 11:50:07 -03:00
zebra_mroute.c zebra: Add some additional vrf debug for retrieving mroute info 2018-09-17 09:22:31 -04:00
zebra_mroute.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_netns_id.c zebra: dead code (Coverity 1465497) 2018-10-02 15:45:44 +02:00
zebra_netns_id.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_netns_notify.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
zebra_netns_notify.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_nhg_private.h zebra: don't created connected if duplicate depend 2020-01-30 17:15:05 -05:00
zebra_nhg.c Merge pull request #5750 from qlyoung/fix-null-after-xfree 2020-02-05 01:49:08 -03:00
zebra_nhg.h Merge pull request #5737 from mjstapp/zebra_disable_kern_nhs 2020-02-04 08:12:34 -05:00
zebra_ns.c zebra: XFREE ns->info directly to NULL it out 2019-11-15 12:33:35 -05:00
zebra_ns.h zebra: Move the supports_nh bool to a better place 2019-10-25 11:13:41 -04:00
zebra_pbr.c zebra: fix ipset, iptable, ipset entry memleaks 2020-01-16 13:31:34 -05:00
zebra_pbr.h zebra: Don't bother ref'ing ifp in zebra_pbr_rule 2019-10-15 15:39:49 -04:00
zebra_ptm_redistribute.c zebra: Remove zclient->idinfo restrictions 2019-02-05 09:13:30 -05:00
zebra_ptm_redistribute.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_ptm.c zebra: bfd message handling cleanup foo 2020-01-14 13:57:10 -05:00
zebra_ptm.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_pw.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_pw.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_rib.c *: don't null after XFREE; XFREE does this itself 2020-02-03 11:22:13 -05:00
zebra_rnh.c *: revise zapi nexthop encoding 2019-12-06 10:17:20 -05:00
zebra_rnh.h zebra: nht resolution default configurable per vrf 2019-08-28 16:19:34 +02:00
zebra_routemap.c *: make all route_map_rule_cmd const 2019-11-30 00:38:32 +01:00
zebra_routemap.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_router.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_router.h zebra: Header file changes and show commands. 2020-01-30 10:26:04 -08:00
zebra_snmp.c lib,zebra: use nhg_hash_entry pointer in route_entry 2019-12-04 08:13:52 -05:00
zebra_vrf.c zebra: separate zebra_vrf_lookup_table_with_id() 2019-11-01 16:06:19 -04:00
zebra_vrf.h zebra: separate zebra_vrf_lookup_table_with_id() 2019-11-01 16:06:19 -04:00
zebra_vty.c vty: add command to get route with table, vrf and protocol 2020-02-11 17:07:47 +01:00
zebra_vxlan_private.h zebra: remove cast from l3vni XMALLOC 2020-01-07 13:54:41 -05:00
zebra_vxlan.c zebra: fix assert crash on corrupt vxlan msg 2020-01-15 14:20:22 -05:00
zebra_vxlan.h Merge pull request #4977 from chiragshah6/evpn_dev1 2019-11-26 17:56:59 +01:00
zebra.conf.sample *: Remove cvs control points 2017-12-05 17:28:12 -05:00
zserv.c zebra: Handling of connection disconnect and connect with GR. 2020-01-30 10:26:04 -08:00
zserv.h zebra: Capabality and stale route handling for GR client. 2020-01-31 03:36:37 -08:00