From: Chirag Shah Date: Mon, 28 Oct 2019 22:05:05 +0000 (-0700) Subject: bgpd: adv pip to throw warning under default vrf X-Git-Tag: base_7.3~133^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a6e7677e63d5a0f35b573164b4f8cc91afa0b1ac;p=matthieu%2Ffrr.git bgpd: adv pip to throw warning under default vrf 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 --- diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index bfb2d7b9e9..d316a28dcb 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -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();