summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-10-09 19:50:13 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-09 20:24:31 -0400
commitd5c65bf1a2b43d97e19e169223d8a33269bc6625 (patch)
tree543831bbc4aa6e90c786cffe7c5639732002590b /ospfd/ospf_interface.c
parent9685b1e414118391825ad56faa8879d279eebeb6 (diff)
*: Cleanup interface creation apis
Cleanup the interface creation apis to make it more clear what they are doing. Make it explicit that the creation via name/ifindex will only add it to the appropriate list. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 3407d1bad1..1f5e0da944 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -847,9 +847,9 @@ struct ospf_interface *ospf_vl_new(struct ospf *ospf,
ospf->vrf_id);
snprintf(ifname, sizeof(ifname), "VLINK%u", vlink_count);
- vi = if_create(ifname, ospf->vrf_id);
+ vi = if_create_name(ifname, ospf->vrf_id);
/*
- * if_create sets ZEBRA_INTERFACE_LINKDETECTION
+ * if_create_name sets ZEBRA_INTERFACE_LINKDETECTION
* virtual links don't need this.
*/
UNSET_FLAG(vi->status, ZEBRA_INTERFACE_LINKDETECTION);