summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 13:58:59 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 13:58:59 -0400
commit59752d4ea5fc500db2f659f85f2e8c68045a83b8 (patch)
tree20b40215ecb8fdc7ef066fc35cb6c6f87bb29522 /pimd/pim_cmd.c
parentb4657ea44c7853047fa21585defd06b4b2e52752 (diff)
pimd: Actually create vif's in non-integrated config
The startup of a non-integrated config was not properly allowing for startup to create the vif when we have not learned about the interface we are trying to configure at this point in time. Actually notice when we are trying to create a pimreg device or not to properly notice when to attempt to create the vif or not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 968fc378f0..dd2ba93738 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -5766,7 +5766,8 @@ static int pim_cmd_igmp_start(struct vty *vty, struct interface *ifp)
pim_ifp = ifp->info;
if (!pim_ifp) {
- pim_ifp = pim_if_new(ifp, 1 /* igmp=true */, 0 /* pim=false */);
+ pim_ifp = pim_if_new(ifp, 1 /* igmp=true */, 0 /* pim=false */,
+ false);
if (!pim_ifp) {
vty_out(vty, "Could not enable IGMP on interface %s\n",
ifp->name);
@@ -6377,7 +6378,8 @@ static int pim_cmd_interface_add(struct interface *ifp)
struct pim_interface *pim_ifp = ifp->info;
if (!pim_ifp) {
- pim_ifp = pim_if_new(ifp, 0 /* igmp=false */, 1 /* pim=true */);
+ pim_ifp = pim_if_new(ifp, 0 /* igmp=false */, 1 /* pim=true */,
+ false);
if (!pim_ifp) {
return 0;
}