diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-12-20 17:51:37 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-09-11 18:26:23 +0200 |
commit | 2961d0601c7d168eed5bbe8e95f80a642f9cb4b5 (patch) | |
tree | 940c64d4ab3be5613752b36d78f027e28291324c /zebra/main.c | |
parent | zebra: local mac entries populated in correct netnamespace (diff) | |
download | frr-2961d0601c7d168eed5bbe8e95f80a642f9cb4b5.tar.xz frr-2961d0601c7d168eed5bbe8e95f80a642f9cb4b5.zip |
lib, zebra: reuse and adapt ns_list walk functionality
the walk routine is used by vxlan service to identify some contexts in
each specific network namespace, when vrf netns backend is used. that
walk mechanism is extended with some additional paramters to the walk
routine.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r-- | zebra/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/main.c b/zebra/main.c index 64746f716..2b97e915f 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -187,7 +187,7 @@ static void sigint(void) vrf_terminate(); rtadv_terminate(); - ns_walk_func(zebra_ns_early_shutdown); + ns_walk_func(zebra_ns_early_shutdown, NULL, NULL); zebra_ns_notify_close(); access_list_reset(); @@ -218,7 +218,7 @@ int zebra_finalize(struct thread *dummy) zlog_info("Zebra final shutdown"); /* Final shutdown of ns resources */ - ns_walk_func(zebra_ns_final_shutdown); + ns_walk_func(zebra_ns_final_shutdown, NULL, NULL); /* Stop dplane thread and finish any cleanup */ zebra_dplane_shutdown(); |