summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-08 10:50:43 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-15 13:25:44 +0200
commitce19a04aea80f45ca1da80e28bf3a1253138c691 (patch)
treec77a0afabe9f9ac0e469c65b41da391032ceb8e8 /bgpd/bgp_main.c
parentdoc: sample code-doc in .rst+sphinx (diff)
downloadfrr-ce19a04aea80f45ca1da80e28bf3a1253138c691.tar.xz
frr-ce19a04aea80f45ca1da80e28bf3a1253138c691.zip
lib: replace if_add_hook with hook_* logic
This allows modules to register their own additional hooks on interface creation/deletion. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index a80dff271..d1359402d 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -178,9 +178,6 @@ static __attribute__((__noreturn__)) void bgp_exit(int status)
bgp_close();
- if (retain_mode)
- if_add_hook(IF_DELETE_HOOK, NULL);
-
/* reverse bgp_master_init */
for (ALL_LIST_ELEMENTS(bm->bgp, node, nnode, bgp))
bgp_delete(bgp);