treewide: Ignore non-ethernet devices
These are not regular ethernet devices that use INET protocols. We can
ignore them as they just produce journal spam otherwise.
Tested: Verified that our MCTP interfaces are no longer reported as
objects and that our NCSI and ETH interfaces are still added.
Change-Id: Idd5723e443b358fe76f039bcc4ce70390824094d
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/test_ethernet_interface.cpp b/test/test_ethernet_interface.cpp
index 7b72166..f6c59b1 100644
--- a/test/test_ethernet_interface.cpp
+++ b/test/test_ethernet_interface.cpp
@@ -4,6 +4,7 @@
#include "test_network_manager.hpp"
#include <net/if.h>
+#include <net/if_arp.h>
#include <sdbusplus/bus.hpp>
#include <stdplus/gtest/tmp.hpp>
@@ -40,7 +41,8 @@
makeInterface(stdplus::PinnedRef<sdbusplus::bus_t> bus,
TestManager& manager)
{
- AllIntfInfo info{InterfaceInfo{.idx = 1, .flags = 0, .name = "test0"}};
+ AllIntfInfo info{InterfaceInfo{
+ .type = ARPHRD_ETHER, .idx = 1, .flags = 0, .name = "test0"}};
return {bus, manager, info, "/xyz/openbmc_test/network"sv,
config::Parser()};
}
@@ -72,7 +74,8 @@
constexpr ether_addr mac{0x11, 0x22, 0x33, 0x44, 0x55, 0x66};
constexpr unsigned mtu = 150;
- AllIntfInfo info{InterfaceInfo{.idx = 2,
+ AllIntfInfo info{InterfaceInfo{.type = ARPHRD_ETHER,
+ .idx = 2,
.flags = IFF_RUNNING,
.name = "test1",
.mac = mac,