summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-02-11 15:03:19 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-06-12 08:37:58 +0200
commitda85f5e03899ee53e235ef5eb6cdacc1ae85de86 (patch)
treeaf9824ef538cb44e0f00be9425d48d6155a5130e /ospfd
parentzebra, ifp: on netlink discovery, anticipate the vrf creation (diff)
downloadfrr-da85f5e03899ee53e235ef5eb6cdacc1ae85de86.tar.xz
frr-da85f5e03899ee53e235ef5eb6cdacc1ae85de86.zip
lib, bgpd, ospfd, pimd, zebra, rip, ripng, bfd: change if_update_to_new_vrf() api
vrf_id parameter is replaced with struct vrf * parameter. It is needed to create vrf structure before entering in the fuction. an error is generated in case the vrf parameter is missing. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 9db89faa9..01b48b0c7 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -366,7 +366,7 @@ static int ospf_interface_vrf_update(ZAPI_CALLBACK_ARGS)
ospf_vrf_id_to_name(new_vrf_id), new_vrf_id);
/*if_update(ifp, ifp->name, strlen(ifp->name), new_vrf_id);*/
- if_update_to_new_vrf(ifp, new_vrf_id);
+ if_update_to_new_vrf(ifp, vrf_lookup_by_id(new_vrf_id));
return 0;
}