ethernet_interface: Fix VLAN delete
This ensures that we delete the interface in the correct order with
reloads.
Change-Id: I6fec890b112b62be15256af415a6df1bfb6ccd38
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/network_manager.cpp b/src/network_manager.cpp
index 2d0f506..30af9a6 100644
--- a/src/network_manager.cpp
+++ b/src/network_manager.cpp
@@ -119,6 +119,10 @@
void Manager::createInterface(const AllIntfInfo& info, bool enabled)
{
+ if (ignoredIntf.find(info.intf.idx) != ignoredIntf.end())
+ {
+ return;
+ }
if (auto it = interfacesByIdx.find(info.intf.idx);
it != interfacesByIdx.end())
{