diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 01:27:31 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 22:40:47 +0300 |
commit | 1e45fde46ba5e1e1e058f40e4455f4f01ccb476b (patch) | |
tree | b0b423e300b20cf3c379154720f690ef6456d475 | |
parent | c2621e8ed90eeafae27eb942e3b44be757778f14 (diff) | |
download | bmcweb-1e45fde46ba5e1e1e058f40e4455f4f01ccb476b.tar.xz |
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 <gmills@us.ibm.com>
-rw-r--r-- | redfish-core/lib/pcie.hpp | 10 |
1 files changed, 0 insertions, 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> asyncResp = std::make_shared<AsyncResp>(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"}, |