Ensure that during interface lookup (non-vty context), if the interface is
found in a different VRF, it is "moved" into the requested VRF.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Ticket: CM-9579
Reviewed By: CCR-4194
Testing Done: Manual
* from the kernel by way of zclient, believe it and update
* the ifp accordingly.
*/
- if (vrf_id == VRF_DEFAULT)
- return ifp;
- if (vty)
- return NULL;
+ if (vty)
+ {
+ if (vrf_id == VRF_DEFAULT)
+ return ifp;
+ return NULL;
+ }
else
{
if_update_vrf (ifp, name, namelen, vrf_id);