Re: [PATCH] net: allow interface to be set into VRF if VLAN interface in same VRF

2018-03-01 Thread David Miller
From: Mike Manning Date: Mon, 26 Feb 2018 23:49:30 + > Setting an interface into a VRF fails with 'RTNETLINK answers: File > exists' if one of its VLAN interfaces is already in the same VRF. > As the VRF is an upper device of the VLAN interface, it is also

Re: [PATCH] net: allow interface to be set into VRF if VLAN interface in same VRF

2018-02-27 Thread David Ahern
On 2/26/18 4:49 PM, Mike Manning wrote: > Setting an interface into a VRF fails with 'RTNETLINK answers: File > exists' if one of its VLAN interfaces is already in the same VRF. > As the VRF is an upper device of the VLAN interface, it is also showing > up as an upper device of the interface

[PATCH] net: allow interface to be set into VRF if VLAN interface in same VRF

2018-02-26 Thread Mike Manning
Setting an interface into a VRF fails with 'RTNETLINK answers: File exists' if one of its VLAN interfaces is already in the same VRF. As the VRF is an upper device of the VLAN interface, it is also showing up as an upper device of the interface itself. The solution is to restrict this check to