diff options
| author | Trey Aspelund <taspelund@nvidia.com> | 2023-01-31 14:36:45 -0500 |
|---|---|---|
| committer | Trey Aspelund <taspelund@nvidia.com> | 2023-05-30 15:20:35 +0000 |
| commit | 56fe240061ea63dfab41b3544248f51099323f91 (patch) | |
| tree | 1789bda9538aa766a8832ee10ac133d0f333c6c0 /python/firstheader.py | |
| parent | 63e04998a7a12ee203fa4aeea205e3b9671bf995 (diff) | |
bgpd: only rescan EVPN tables if self-mac changes
When processing an interface up/create event from zebra, we insert that
interface's MAC address into the self_mac_hash used for dropping EVPN
routes carrying a 'self mac' (RMAC ext-comm or MAC in Type-2 NLRI).
However, we were unconditionally triggering a "rescan" of the EVPN RIB
to ensure we handle routes that match the MAC - even if the MAC already
existed in self_mac_hash (i.e. the change wasn't actionable).
This adds logic to only kick off a "rescan" if the MAC learned from
zebra is not already in the self_mac_hash.
Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
Diffstat (limited to 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions
