From 1e45fde46ba5e1e1e058f40e4455f4f01ccb476b Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Wed, 19 Feb 2020 16:27:31 -0600 Subject: pcie: Remove odata.context Redfish made odata.context optional (1.6.0 of DSP0266) and has removed odata.context from example payloads in the specification (1.7.0 of DSP0266), removed it from the mockups, and Redfish recommended not using. Change-Id: I262f21aac32634f8e87863cca7816e4b9236227a Signed-off-by: Gunnar Mills --- redfish-core/lib/pcie.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp index 36248a1ad7..b963a534e2 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -95,9 +95,6 @@ class SystemPCIeDeviceCollection : public Node std::shared_ptr asyncResp = std::make_shared(res); asyncResp->res.jsonValue = { {"@odata.type", "#PCIeDeviceCollection.PCIeDeviceCollection"}, - {"@odata.context", - "/redfish/v1/" - "$metadata#PCIeDeviceCollection.PCIeDeviceCollection"}, {"@odata.id", "/redfish/v1/Systems/system/PCIeDevices"}, {"Name", "PCIe Device Collection"}, {"Description", "Collection of PCIe Devices"}, @@ -161,8 +158,6 @@ class SystemPCIeDevice : public Node asyncResp->res.jsonValue = { {"@odata.type", "#PCIeDevice.v1_4_0.PCIeDevice"}, - {"@odata.context", - "/redfish/v1/$metadata#PCIeDevice.v1_4_0.PCIeDevice"}, {"@odata.id", "/redfish/v1/Systems/system/PCIeDevices/" + device}, {"Name", "PCIe Device"}, @@ -229,9 +224,6 @@ class SystemPCIeFunctionCollection : public Node const std::string &device = params[0]; asyncResp->res.jsonValue = { {"@odata.type", "#PCIeFunctionCollection.PCIeFunctionCollection"}, - {"@odata.context", - "/redfish/v1/" - "$metadata#PCIeFunctionCollection.PCIeFunctionCollection"}, {"@odata.id", "/redfish/v1/Systems/system/PCIeDevices/" + device + "/PCIeFunctions"}, {"Name", "PCIe Function Collection"}, @@ -364,8 +356,6 @@ class SystemPCIeFunction : public Node asyncResp->res.jsonValue = { {"@odata.type", "#PCIeFunction.v1_2_0.PCIeFunction"}, - {"@odata.context", - "/redfish/v1/$metadata#PCIeFunction.PCIeFunction"}, {"@odata.id", "/redfish/v1/Systems/system/PCIeDevices/" + device + "/PCIeFunctions/" + function}, {"Name", "PCIe Function"}, -- cgit v1.2.3