summaryrefslogtreecommitdiffstats
path: root/pimd/pim_instance.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-22 17:09:13 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-24 19:51:37 +0200
commit71ad9915e7e5bc224fb1dd84ac709776465720f6 (patch)
treedfa82cf9cc8f8e95d1054c7ff9cd2e8e3e199529 /pimd/pim_instance.c
parentpimd: Make msdp `struct pim_instance *` aware (diff)
downloadfrr-71ad9915e7e5bc224fb1dd84ac709776465720f6.tar.xz
frr-71ad9915e7e5bc224fb1dd84ac709776465720f6.zip
pimd: Make pim_ssmpingd.c 'struct pim_instance' aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.c')
-rw-r--r--pimd/pim_instance.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c
index 6b10f14d9..eae05803c 100644
--- a/pimd/pim_instance.c
+++ b/pimd/pim_instance.c
@@ -30,6 +30,7 @@
#include "pim_mroute.h"
#include "pim_oil.h"
#include "pim_static.h"
+#include "pim_ssmpingd.h"
static void pim_instance_terminate(struct pim_instance *pim)
{
@@ -128,13 +129,21 @@ struct pim_instance *pim_get_pim_instance(vrf_id_t vrf_id)
static int pim_vrf_new(struct vrf *vrf)
{
+ struct pim_instance *pim = vrf->info;
+
zlog_debug("VRF Created: %s(%d)", vrf->name, vrf->vrf_id);
+
+ pim_ssmpingd_init(pim);
return 0;
}
static int pim_vrf_delete(struct vrf *vrf)
{
+ struct pim_instance *pim = vrf->info;
+
zlog_debug("VRF Deletion: %s(%d)", vrf->name, vrf->vrf_id);
+
+ pim_ssmpingd_destroy(pim);
return 0;
}