diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2023-10-08 10:52:54 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-08 10:52:54 -0300 |
| commit | 4a600456886e68e507eb12af1cc70bef0bdc70f4 (patch) | |
| tree | 4ad7aee3137c243afd2693aa6fa0cdb58bd5138d /pimd | |
| parent | 5c0a5aa616a48d3df1612c5c2f4810abb5cfe49c (diff) | |
| parent | 56f141e64b2cfcb486bd73c7f11534f26aef9227 (diff) | |
Merge pull request #10733 from anlancs/zebra-remove-update
zebra: remove ZEBRA_INTERFACE_VRF_UPDATE
Diffstat (limited to 'pimd')
| -rw-r--r-- | pimd/pim_zebra.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 92dcbf9d1d..62f00dbf86 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -51,39 +51,6 @@ static int pim_router_id_update_zebra(ZAPI_CALLBACK_ARGS) return 0; } -static int pim_zebra_interface_vrf_update(ZAPI_CALLBACK_ARGS) -{ - struct interface *ifp; - vrf_id_t new_vrf_id; - struct pim_instance *pim; - struct pim_interface *pim_ifp; - - ifp = zebra_interface_vrf_update_read(zclient->ibuf, vrf_id, - &new_vrf_id); - if (!ifp) - return 0; - - if (PIM_DEBUG_ZEBRA) - zlog_debug("%s: %s updating from %u to %u", __func__, ifp->name, - vrf_id, new_vrf_id); - - pim = pim_get_pim_instance(new_vrf_id); - if (!pim) - return 0; - - if_update_to_new_vrf(ifp, new_vrf_id); - - pim_ifp = ifp->info; - if (!pim_ifp) - return 0; - - pim_ifp->pim->mcast_if_count--; - pim_ifp->pim = pim; - pim_ifp->pim->mcast_if_count++; - - return 0; -} - #ifdef PIM_DEBUG_IFADDR_DUMP static void dump_if_address(struct interface *ifp) { @@ -463,7 +430,6 @@ static zclient_handler *const pim_handlers[] = { [ZEBRA_NEXTHOP_UPDATE] = pim_parse_nexthop_update, [ZEBRA_ROUTER_ID_UPDATE] = pim_router_id_update_zebra, - [ZEBRA_INTERFACE_VRF_UPDATE] = pim_zebra_interface_vrf_update, #if PIM_IPV == 4 [ZEBRA_VXLAN_SG_ADD] = pim_zebra_vxlan_sg_proc, |
