summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-02-11 14:55:23 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-06-11 17:10:47 +0200
commite9c199a6c12ad8359d1792462545595d4679d20b (patch)
tree4175e4375b75d7c0a50863da4194e01a5a034f26 /ospfd/ospf_interface.c
parentospf, ospf6d, zebra, lib: change if_get_by_name prototype with vrf (diff)
downloadfrr-e9c199a6c12ad8359d1792462545595d4679d20b.tar.xz
frr-e9c199a6c12ad8359d1792462545595d4679d20b.zip
lib, ospfd, pimd, zebra: change if_create() api with vrf
if_create() takes as input a vrf poiter instead of the vrf_id parameter. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index ce1604a5b..4075f3209 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -838,6 +838,7 @@ struct ospf_interface *ospf_vl_new(struct ospf *ospf,
struct in_addr area_id;
struct connected *co;
struct prefix_ipv4 *p;
+ struct vrf *vrf;
if (IS_DEBUG_OSPF_EVENT)
zlog_debug("ospf_vl_new(): Start");
@@ -855,7 +856,8 @@ 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);
+ vrf = vrf_lookup_by_id(ospf->vrf_id);
+ vi = if_create(ifname, vrf);
/*
* if_create sets ZEBRA_INTERFACE_LINKDETECTION
* virtual links don't need this.