system_queries: Get Interface Info from netlink
This reduces all of the interface information probing down to a single
netlink request for all the label + mac information needed to build an
ethernet interface.
If we ever plumb the ethernet stats into dbus, we can get that
information with this same netlink code.
Change-Id: Ied8a73639dcd74bcfecda392905638573ab7970f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/test_vlan_interface.cpp b/test/test_vlan_interface.cpp
index 499ab34..c17bf97 100644
--- a/test/test_vlan_interface.cpp
+++ b/test/test_vlan_interface.cpp
@@ -2,6 +2,7 @@
#include "ipaddress.hpp"
#include "mock_network_manager.hpp"
#include "mock_syscall.hpp"
+#include "system_queries.hpp"
#include "vlan_interface.hpp"
#include <arpa/inet.h>
@@ -44,7 +45,7 @@
mock_addIF("test0", /*idx=*/1);
return {bus,
manager,
- getInterfaceInfo("test0"),
+ system::InterfaceInfo{.idx = 1, .flags = 0, .name = "test0"},
"/xyz/openbmc_test/network"sv,
config::Parser(),
/*emitSignal=*/false,