From b8983957a045878b0776411990be9059ed7f74c0 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 3 Jun 2021 14:55:44 -0700 Subject: Move the hypervisor endpoints into a namespace The /redfish/v1/systems/hypervisor endpoints seem to have copy/pasted a lot of code from ethernet.hpp, including all the function naming. This is causing naming conflicts as part of removing the Node class. For the moment, just put these methods into the redfish::hypervisor namespace, along with a comment, so we can at least get code that builds. At some point in the future we can deduplicate the duplicated code, and give the unique things unique method names so we don't have collisions and this can be undone. Tested: Ran redfish service validator on 42a9e0ee96ef1928732ffd8d567ad656a4f41887 No change in behavior, one failure on Manager UUID that appears unrelated. Signed-off-by: Ed Tanous Change-Id: I0d715ed3bf04a86a93eb7842804319568083f86d --- redfish-core/include/redfish.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redfish-core/include/redfish.hpp') diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index e755c8143b..6dff5fddbe 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -198,7 +198,7 @@ class RedfishService requestRoutesEventDestination(app); requestRoutesSubmitTestEvent(app); - requestRoutesHypervisorSystems(app); + hypervisor::requestRoutesHypervisorSystems(app); requestRoutesTelemetryService(app); requestRoutesMetricReportDefinitionCollection(app); -- cgit v1.2.3