Skip to content

Commit eb39ac5

Browse files
authored
Hack to pass validator for hypervisor (#1280)
Comment out the link so the validator doesn't find the hypervisor eth interfaces. Seeing errors like ``` 2 err.Collection(EthernetInterface.EthernetInterface) errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces 2 failMandatoryProp errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces 2 fails errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces 1 failGet errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 1 fails errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 1 failGet errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1 1 fails errors in /redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1 ``` Tested: No validator errors here. Signed-off-by: Gunnar Mills <[email protected]>
1 parent a115379 commit eb39ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redfish-core/lib/hypervisor_system.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ inline void handleHypervisorSystemGet(
724724
BMCWEB_REDFISH_MANAGER_URI_NAME);
725725
managedBy.emplace_back(std::move(manager));
726726
asyncResp->res.jsonValue["Links"]["ManagedBy"] = std::move(managedBy);
727-
asyncResp->res.jsonValue["EthernetInterfaces"]["@odata.id"] =
728-
"/redfish/v1/Systems/hypervisor/EthernetInterfaces";
727+
// asyncResp->res.jsonValue["EthernetInterfaces"]["@odata.id"] =
728+
// "/redfish/v1/Systems/hypervisor/EthernetInterfaces";
729729
getHypervisorState(asyncResp);
730730
getHypervisorActions(asyncResp);
731731
// TODO: Add "SystemType" : "hypervisor"

0 commit comments

Comments
 (0)