]> git.proxmox.com Git - mirror_frr.git/commit
zebra: fix detection of VRF misconfiguration
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 30 Apr 2020 02:12:22 +0000 (23:12 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 30 Apr 2020 02:34:06 +0000 (23:34 -0300)
commit2e86d16d994f793ff9211b966066dfb5c2e9048b
treea6a784c8229b49f956a8d69aab1210bdfefdc383
parent31b5355d6f643a7ce35a8aa2b293d0421ea9c579
zebra: fix detection of VRF misconfiguration

The netlink_vrf_change() function is called both when a VRF device
is created in the Linux kernel and when it is activated. This
commit changes this function to perform the VRF misconfiguration
detection only when the VRF device is created, as doing the check
twice would cause a false positive followed by a hard failure (not
to mention the double check is unnecessary since the VRF table ID
can't change once the device is created).

Fixes #6319.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/if_netlink.c