zebra: include old reason in evpn-mh bond update

Ensure we include the old reason when we are updating the reason
code for a evpn-mh bond member. Now that this is a common API
it could include things external to EVPN in this reason code
bitfield (ex: vrrp).

Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
Stephen Worley 2022-02-15 18:42:41 -05:00
parent ed7a1622c3
commit 26a64ff9ca

View File

@ -3636,7 +3636,7 @@ void zebra_evpn_mh_update_protodown_bond_mbr(struct zebra_if *zif, bool clear,
}
old_protodown_rc = zif->protodown_rc;
new_protodown_rc &= ~ZEBRA_PROTODOWN_EVPN_ALL;
new_protodown_rc = (old_protodown_rc & ~ZEBRA_PROTODOWN_EVPN_ALL);
new_protodown_rc |= (protodown_rc & ZEBRA_PROTODOWN_EVPN_ALL);
new_protodown = !!new_protodown_rc;