diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-02-11 15:03:19 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-06-12 08:37:58 +0200 |
commit | da85f5e03899ee53e235ef5eb6cdacc1ae85de86 (patch) | |
tree | af9824ef538cb44e0f00be9425d48d6155a5130e /ospfd | |
parent | zebra, ifp: on netlink discovery, anticipate the vrf creation (diff) | |
download | frr-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.c | 2 |
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; } |