bgpd: The vpn variable must be non-null

The vpn variable in bgp_evpn_advertise_svi_ip_vni must
be non-null as such it is impossible to ever need the
!vpn test case.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-05-03 20:18:58 -04:00
parent 8dc7a75918
commit 2613754b2e

View File

@ -3259,9 +3259,6 @@ DEFPY(bgp_evpn_advertise_svi_ip_vni,
if (!bgp)
return CMD_WARNING;
if (!vpn)
return CMD_WARNING;
if (no)
evpn_set_advertise_svi_macip(bgp, vpn, 0);
else