Zebra: Ignore status change for VRF (temporary)

Temporary change to ignore status change for a VRF device as it is
incorrectly implemented now. When VRF is also supported as an
interface, the status change will be handled for the interface.

Ticket:
Reviewed By:
Testing Done:
This commit is contained in:
vivek 2016-02-19 22:50:56 -08:00
parent d1be1f083d
commit 3e66be2ee6

View File

@ -540,6 +540,19 @@ netlink_vrf_change (struct nlmsghdr *h, struct rtattr *tb, const char *name)
zlog_debug ("%s: RTM_NEWLINK for VRF(%s) index %u, table %u", __func__,
name, ifi->ifi_index, nl_table_id);
/* If VRF already exists, we just return; status changes are ignored
* for now.
* TODO: Status changes will be handled against the VRF "interface".
*/
vrf = vrf_lookup ((vrf_id_t)ifi->ifi_index);
if (vrf)
{
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug ("%s: RTM_NEWLINK status for VRF(%s) index %u - ignored",
__func__, name, ifi->ifi_index);
return;
}
vrf = vrf_get((vrf_id_t)ifi->ifi_index, name); // It would create vrf
if (!vrf)
{