]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: filter for prefix route in route rd commands
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Sun, 3 Dec 2017 00:53:59 +0000 (16:53 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Wed, 24 Jan 2018 00:24:39 +0000 (16:24 -0800)
Ticket: CM-19000
Review: crr-7008
Testing: Manual

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c

index 85f8d89df9caf4d29b180700ad1e5e8bc7ecc6f1..9f35671968a1c44550f1ca1a1c5cb7a0c6d3082c 100644 (file)
@@ -2941,7 +2941,7 @@ DEFUN(show_bgp_l2vpn_evpn_route,
       "Specify Route type\n"
       "MAC-IP (Type-2) route\n"
       "Multicast (Type-3) route\n"
-      "Prefix route"
+      "Prefix route\n"
       JSON_STR)
 {
        struct bgp *bgp;
@@ -2987,7 +2987,7 @@ DEFUN(show_bgp_l2vpn_evpn_route,
  */
 DEFUN(show_bgp_l2vpn_evpn_route_rd,
       show_bgp_l2vpn_evpn_route_rd_cmd,
-      "show bgp l2vpn evpn route rd ASN:NN_OR_IP-ADDRESS:NN [type <macip|multicast>] [json]",
+      "show bgp l2vpn evpn route rd ASN:NN_OR_IP-ADDRESS:NN [type <macip|multicast|prefix>] [json]",
       SHOW_STR
       BGP_STR
       L2VPN_HELP_STR
@@ -2998,6 +2998,7 @@ DEFUN(show_bgp_l2vpn_evpn_route_rd,
       "Specify Route type\n"
       "MAC-IP (Type-2) route\n"
       "Multicast (Type-3) route\n"
+      "Prefix route\n"
       JSON_STR)
 {
        struct bgp *bgp;
@@ -3035,6 +3036,8 @@ DEFUN(show_bgp_l2vpn_evpn_route_rd,
                        type = BGP_EVPN_MAC_IP_ROUTE;
                else if (strncmp(argv[type_idx + 1]->arg, "mu", 2) == 0)
                        type = BGP_EVPN_IMET_ROUTE;
+               else if (strncmp(argv[type_idx + 1]->arg, "pr", 2) == 0)
+                       type = BGP_EVPN_IP_PREFIX_ROUTE;
                else
                        return CMD_WARNING;
        }