summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:29:16 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:29:16 -0700
commit90c97340627457b0f1c988d5b0903e8bb038c47d (patch)
treee39f6ab0b1673a493475d5ea6e7dfbb8660653fa /ospfd/ospf_interface.c
parent6410e93aa52a7b406bcbdaecc05a67a2030e4a27 (diff)
ospfd: ospfd-virtual-link.patch
ospfd: virtual links fix Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Basically ZEBRA_INTERFACE_LINKDETECTION is set to on by default now. Virtual links are failing to identify as up because of this code change. Modify ospf to set the flag as appropriate
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 6c330e95dc..14af7e3425 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -883,6 +883,11 @@ ospf_vl_new (struct ospf *ospf, struct ospf_vl_data *vl_data)
snprintf (ifname, sizeof(ifname), "VLINK%d", vlink_count);
vi = if_create (ifname, strnlen(ifname, sizeof(ifname)));
+ /*
+ * if_create sets ZEBRA_INTERFACE_LINKDETECTION
+ * virtual links don't need this.
+ */
+ UNSET_FLAG (vi->status, ZEBRA_INTERFACE_LINKDETECTION);
co = connected_new ();
co->ifp = vi;
listnode_add (vi->connected, co);