From 3d4c0b49dacb454dbcf4dc3b56f8ccd8bb5202e5 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Wed, 22 Aug 2018 09:19:04 +0200 Subject: lib: change vrf_is_mapped_on_netns API The function handles not a vrf pointer instead of a vrf_id value. Signed-off-by: Philippe Guibert --- lib/if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index 6023624dc1..11c4f1b5dc 100644 --- a/lib/if.c +++ b/lib/if.c @@ -393,7 +393,8 @@ struct interface *if_get_by_name(const char *name, vrf_id_t vrf_id, int vty) * this should not be considered as an update * then create the new interface */ - if (ifp->vrf_id != vrf_id && vrf_is_mapped_on_netns(vrf_id)) + if (ifp->vrf_id != vrf_id && vrf_is_mapped_on_netns( + vrf_lookup_by_id(vrf_id))) return if_create(name, vrf_id); /* If it came from the kernel * or by way of zclient, believe it and update -- cgit v1.2.3