mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 11:18:59 +00:00
zebra: remove unnecessary assignment
In `zebra_evpn_neigh_gw_macip_add()`, it sets `mac->flags` to "ZEBRA_MAC_DEF_GW" for "advertise-default-gw" mode. But this set is redundant because this "mac" is already set by `zebra_evpn_mac_gw_macip_add()`. So remove this redundant assignment. Signed-off-by: anlan_cs <vic.lan@pica8.com>
This commit is contained in:
parent
5e5cd2784f
commit
c2fd85a854
@ -2203,7 +2203,6 @@ int zebra_evpn_neigh_gw_macip_add(struct interface *ifp,
|
|||||||
/* Only advertise in BGP if the knob is enabled */
|
/* Only advertise in BGP if the knob is enabled */
|
||||||
if (advertise_gw_macip_enabled(zevpn)) {
|
if (advertise_gw_macip_enabled(zevpn)) {
|
||||||
|
|
||||||
SET_FLAG(mac->flags, ZEBRA_MAC_DEF_GW);
|
|
||||||
SET_FLAG(n->flags, ZEBRA_NEIGH_DEF_GW);
|
SET_FLAG(n->flags, ZEBRA_NEIGH_DEF_GW);
|
||||||
/* Set Router flag (R-bit) */
|
/* Set Router flag (R-bit) */
|
||||||
if (ip->ipa_type == IPADDR_V6)
|
if (ip->ipa_type == IPADDR_V6)
|
||||||
|
Loading…
Reference in New Issue
Block a user