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 <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2019-10-28 15:05:05 -07:00
parent 27727001d7
commit a6e7677e63

View 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();