diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-02-15 01:36:36 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-15 01:56:32 +0300 |
commit | e59f968c5d888f1203ac2c8a636f52a906f116db (patch) | |
tree | 4d8a3a9578b0d9fd61ebd053bc6029f858cdf8db /redfish-core/lib/ethernet.hpp | |
parent | 91cc52f96d2633efc1f7313c5ba7c2ef151bedde (diff) | |
download | bmcweb-e59f968c5d888f1203ac2c8a636f52a906f116db.tar.xz |
ethernet: Remove odata.context
Redfish made odata.context optional (1.6.0 of DSP0266),
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: I5a78856c510f063df67999bb8196e77401c56aac
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 4998a9500d..0d7e4c5eea 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -1005,9 +1005,6 @@ class EthernetCollection : public Node { res.jsonValue["@odata.type"] = "#EthernetInterfaceCollection.EthernetInterfaceCollection"; - res.jsonValue["@odata.context"] = - "/redfish/v1/" - "$metadata#EthernetInterfaceCollection.EthernetInterfaceCollection"; res.jsonValue["@odata.id"] = "/redfish/v1/Managers/bmc/EthernetInterfaces"; res.jsonValue["Name"] = "Ethernet Network Interface Collection"; @@ -1759,9 +1756,6 @@ class EthernetInterface : public Node asyncResp->res.jsonValue["@odata.type"] = "#EthernetInterface.v1_4_1.EthernetInterface"; - asyncResp->res.jsonValue["@odata.context"] = - "/redfish/v1/" - "$metadata#EthernetInterface.EthernetInterface"; asyncResp->res.jsonValue["Name"] = "Manager Ethernet Interface"; asyncResp->res.jsonValue["Description"] = "Management Network Interface"; @@ -1985,9 +1979,6 @@ class VlanNetworkInterface : public Node const std::string &iface_id = params[1]; res.jsonValue["@odata.type"] = "#VLanNetworkInterface.v1_1_0.VLanNetworkInterface"; - res.jsonValue["@odata.context"] = - "/redfish/v1/" - "$metadata#VLanNetworkInterface.VLanNetworkInterface"; res.jsonValue["Name"] = "VLAN Network Interface"; if (!verifyNames(parent_iface_id, iface_id)) @@ -2216,10 +2207,6 @@ class VlanNetworkInterfaceCollection : public Node asyncResp->res.jsonValue["@odata.type"] = "#VLanNetworkInterfaceCollection." "VLanNetworkInterfaceCollection"; - asyncResp->res.jsonValue["@odata.context"] = - "/redfish/v1/$metadata" - "#VLanNetworkInterfaceCollection." - "VLanNetworkInterfaceCollection"; asyncResp->res.jsonValue["Name"] = "VLAN Network Interface Collection"; |