summaryrefslogtreecommitdiff
path: root/zebra/interface.c
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 /zebra/interface.c
parent921a85ba8c92eea6e104dea002870e323e5a19b5 (diff)
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 'zebra/interface.c')
-rw-r--r--zebra/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index b183b285e0..0eec68e840 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -768,6 +768,7 @@ void if_delete_update(struct interface *ifp)
void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id)
{
vrf_id_t old_vrf_id;
+ struct vrf *vrf = vrf_lookup_by_id(vrf_id);
old_vrf_id = ifp->vrf_id;
@@ -785,7 +786,7 @@ void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id)
zebra_interface_vrf_update_del(ifp, vrf_id);
/* update VRF */
- if_update_to_new_vrf(ifp, vrf_id);
+ if_update_to_new_vrf(ifp, vrf);
/* Send out notification on interface VRF change. */
/* This is to issue an ADD, if needed. */