]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: adv pip to throw warning under default vrf
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 28 Oct 2019 22:05:05 +0000 (15:05 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 22 Nov 2019 15:53:40 +0000 (07:53 -0800)
Instead of CMD_WARNING, use CMD_WARNING_CONFIG_FAILED
for any mis-configuration scenario.

Testing Done:

TOR(config)# router bgp 5548
TOR(config-router)# address-family l2vpn evpn
TOR(config-router-af)# no advertise-pip
This command is supported under L3VNI BGP EVPN VRF

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c

index bfb2d7b9e9af199f807909132d02e1ca1563f20a..d316a28dcb80d1f93aaa1c36a7e38f13b581a2ea 100644 (file)
@@ -3690,7 +3690,7 @@ DEFPY (bgp_evpn_advertise_pip_ip_mac,
        if (EVPN_ENABLED(bgp_vrf)) {
                vty_out(vty,
                        "This command is supported under L3VNI BGP EVPN VRF\n");
-               return CMD_WARNING;
+               return CMD_WARNING_CONFIG_FAILED;
        }
        bgp_evpn = bgp_get_evpn();