From 7cabd9361ca981c9f1becae2505d6fc35e32bd5f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 11 Dec 2023 15:22:07 -0500 Subject: zebra: Properly unregister hook on shutdown the zebra pseudo wire code was registering a callback per vrf. These callbacks are not per vrf based. They are vrf agnostic so this was a mistake. Modify the code to on startup register once and on shutdown unregister once. Finally rename the zebra_pw_init and zebra_pw_exit functions to more properly reflect when they are called. Signed-off-by: Donald Sharp --- zebra/zebra_pw.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zebra/zebra_pw.h') diff --git a/zebra/zebra_pw.h b/zebra/zebra_pw.h index a41afc920b..431d663f7c 100644 --- a/zebra/zebra_pw.h +++ b/zebra/zebra_pw.h @@ -60,8 +60,9 @@ void zebra_pw_change(struct zebra_pw *, ifindex_t, int, int, union g_addr *, struct zebra_pw *zebra_pw_find(struct zebra_vrf *, const char *); void zebra_pw_update(struct zebra_pw *); void zebra_pw_install_failure(struct zebra_pw *pw, int pwstatus); -void zebra_pw_init(struct zebra_vrf *); -void zebra_pw_exit(struct zebra_vrf *); +void zebra_pw_init_vrf(struct zebra_vrf *); +void zebra_pw_exit_vrf(struct zebra_vrf *); +void zebra_pw_terminate(void); void zebra_pw_vty_init(void); #ifdef __cplusplus -- cgit v1.2.3