summaryrefslogtreecommitdiff
path: root/pathd/path_zebra.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-07-20 14:53:20 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2022-07-22 08:39:06 +0200
commite6d41136603a53a2d20cf088568522760fdb4966 (patch)
treed58899d382fba44cd3135013214522afd941a6db /pathd/path_zebra.c
parenta145324acf079d1b081cfceb64a04a27279eb626 (diff)
pathd: add a zebra stop handler
This handler code is used to stop zebra related contexts. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'pathd/path_zebra.c')
-rw-r--r--pathd/path_zebra.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pathd/path_zebra.c b/pathd/path_zebra.c
index 156267a394..a98532cc39 100644
--- a/pathd/path_zebra.c
+++ b/pathd/path_zebra.c
@@ -352,3 +352,9 @@ void path_zebra_init(struct thread_master *master)
/* Connect to the LM. */
path_zebra_label_manager_connect();
}
+
+void path_zebra_stop(void)
+{
+ zclient_stop(zclient);
+ zclient_free(zclient);
+}