summaryrefslogtreecommitdiff
path: root/zebra/if_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/if_netlink.c')
-rw-r--r--zebra/if_netlink.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index f7f6334a77..c5fd16b9cd 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -209,13 +209,6 @@ netlink_vrf_change (struct nlmsghdr *h, struct rtattr *tb, const char *name)
if (h->nlmsg_type == RTM_NEWLINK)
{
- /* If VRF already exists, we just return; status changes are handled
- * against the VRF "interface".
- */
- vrf = vrf_lookup ((vrf_id_t)ifi->ifi_index);
- if (vrf && vrf->info)
- return;
-
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug ("RTM_NEWLINK for VRF %s(%u) table %u",
name, ifi->ifi_index, nl_table_id);
@@ -251,7 +244,7 @@ netlink_vrf_change (struct nlmsghdr *h, struct rtattr *tb, const char *name)
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug ("RTM_DELLINK for VRF %s(%u)", name, ifi->ifi_index);
- vrf = vrf_lookup ((vrf_id_t)ifi->ifi_index);
+ vrf = vrf_lookup_by_id ((vrf_id_t)ifi->ifi_index);
if (!vrf)
{