diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-02-15 18:42:41 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2022-03-09 18:02:44 -0500 |
| commit | 26a64ff9ca7b8afdd5ab9b9bc8a59f3ea9dbc53b (patch) | |
| tree | 50e519510b3aeca2bf835050ef72e97acd2aadee | |
| parent | ed7a1622c347bf5cb0929da07f9072e04f0730c1 (diff) | |
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>
| -rw-r--r-- | zebra/zebra_evpn_mh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c index bc050671c7..45eb51ae14 100644 --- a/zebra/zebra_evpn_mh.c +++ b/zebra/zebra_evpn_mh.c @@ -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; |
