Move ethernet interface away from Node class
Pursuant to the other patchsets further up in this chain, continue to
move things to the simpler BMCWEB_ROUTE mechanism. This moves the
Ethernet modules up the chain.
Tested:
Ed Tested on redfish service validator, no new errors (unrelated UUID
error present)
Gunnar Tested Series on validator and GUI.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Id1937e0d3f525d58744e6ff6360ef23f66350c66
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index 6dff5fd..0f43a36 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -69,8 +69,7 @@
requestRoutesServiceRoot(app);
requestRoutesNetworkProtocol(app);
requestRoutesSession(app);
- nodes.emplace_back(std::make_unique<EthernetCollection>(app));
- nodes.emplace_back(std::make_unique<EthernetInterface>(app));
+ requestEthernetInterfacesRoutes(app);
requestRoutesThermal(app);
requestRoutesManagerCollection(app);
requestRoutesManager(app);
@@ -91,9 +90,6 @@
#endif
requestRoutesSoftwareInventoryCollection(app);
requestRoutesSoftwareInventory(app);
- nodes.emplace_back(
- std::make_unique<VlanNetworkInterfaceCollection>(app));
- nodes.emplace_back(std::make_unique<VlanNetworkInterface>(app));
requestRoutesSystemLogServiceCollection(app);
requestRoutesEventLogService(app);