mirror_frr/pbrd
anlan_cs b580c52698 *: remove ZEBRA_INTERFACE_VRF_UPDATE
Currently when one interface changes its VRF, zebra will send these messages to
all daemons in *order*:
    1) `ZEBRA_INTERFACE_DELETE` ( notify them delete from old VRF )
    2) `ZEBRA_INTERFACE_VRF_UPDATE` ( notify them move from old to new VRF )
    3) `ZEBRA_INTERFACE_ADD` ( notify them added into new VRF )

When daemons deal with `VRF_UPDATE`, they use
`zebra_interface_vrf_update_read()->if_lookup_by_name()`
to check the interface exist or not in old VRF. This check will always return
*NULL* because `DELETE` ( deleted from old VRF ) is already done, so can't
find this interface in old VRF.

Send `VRF_UPDATE` is redundant and unuseful. `DELETE` and `ADD` are enough,
they will deal with RB tree, so don't send this `VRF_UPDATE` message when
vrf changes.

Since all daemons have good mechanism to deal with changing vrf, and don't
use this `VRF_UPDATE` mechanism.  So, it is safe to completely remove
all the code with `VRF_UPDATE`.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
2023-10-07 10:06:39 +08:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
pbr_debug.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_debug.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_main.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
pbr_map.c pbrd: Free Memory in pbr_map_delete 2023-09-05 12:58:18 +04:00
pbr_map.h pbrd: Correct Handling of Sequence Deletion 2023-08-20 07:07:36 +04:00
pbr_memory.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_memory.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_nht.c pbrd: use flags to indicate active fields 2023-08-09 12:11:35 -07:00
pbr_nht.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_vrf.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_vrf.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_vty.c Merge pull request #14252 from LabNConsulting/ziemba-pbr-bugfix-match-dscp-numeric 2023-08-29 08:05:17 -04:00
pbr_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
pbr_zebra.c *: remove ZEBRA_INTERFACE_VRF_UPDATE 2023-10-07 10:06:39 +08:00
pbr_zebra.h *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00