summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-06-07 18:56:35 +0200
committerDonald Sharp <sharpd@nvidia.com>2024-08-27 12:25:34 +0200
commitbdfccf69fa128c51c45bbd3528788f72ac17d854 (patch)
treeb1b582d5ab6929e985f63cb9a7b412a49a919094 /zebra
parentzebra: Make p and src_p const for rib_delete (diff)
downloadfrr-bdfccf69fa128c51c45bbd3528788f72ac17d854.tar.xz
frr-bdfccf69fa128c51c45bbd3528788f72ac17d854.zip
zebra: Expose rib_update_handle_vrf_all
This function will be used on interface down events to allow for kernel routes to be cleaned up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/rib.h2
-rw-r--r--zebra/zebra_rib.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index 7f4e3949e..8792fb790 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -477,6 +477,8 @@ extern uint8_t route_distance(int type);
extern void zebra_rib_evaluate_rn_nexthops(struct route_node *rn, uint32_t seq,
bool rt_delete);
+extern void rib_update_handle_vrf_all(enum rib_update_event event, int rtype);
+
/*
* rib_find_rn_from_ctx
*
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index c1bd61e1d..649450b5c 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -4543,7 +4543,7 @@ void rib_update_table(struct route_table *table, enum rib_update_event event,
}
}
-static void rib_update_handle_vrf_all(enum rib_update_event event, int rtype)
+void rib_update_handle_vrf_all(enum rib_update_event event, int rtype)
{
struct zebra_router_table *zrt;