diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2023-02-23 09:11:20 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-06-08 23:47:02 +0300 |
commit | 93bbc953e80362ca17219d5e457680e952c23036 (patch) | |
tree | 7d397464f8f981f6569a0e453087a470e31a3cd8 | |
parent | 9cfcad2db4cf52ae4e6fa449f033d7200d30838f (diff) | |
download | bmcweb-93bbc953e80362ca17219d5e457680e952c23036.tar.xz |
ethernet: Bump EthernetInterface schema 1.6.0 -> 1.9.0
After removing all usages of VLanNetworkInterface that deprecated in
EthernetInterface 1.7.0, time to bump it to 1.9.0 for implementing
the new API design.
Tested:
Redfish validator passed.
Change-Id: Ia89d56a1325918c23ce54c9b8c0dde4342e32764
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 4 | ||||
-rw-r--r-- | redfish-core/lib/hypervisor_system.hpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 97262e322d..0d3ba7a357 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -1769,10 +1769,8 @@ inline void requestEthernetInterfacesRoutes(App& app) return; } - // Keep using the v1.6.0 schema here as currently bmcweb have to use - // "VLANs" property deprecated in v1.7.0 for VLAN creation/deletion. asyncResp->res.jsonValue["@odata.type"] = - "#EthernetInterface.v1_6_0.EthernetInterface"; + "#EthernetInterface.v1_9_0.EthernetInterface"; asyncResp->res.jsonValue["Name"] = "Manager Ethernet Interface"; asyncResp->res.jsonValue["Description"] = "Management Network Interface"; diff --git a/redfish-core/lib/hypervisor_system.hpp b/redfish-core/lib/hypervisor_system.hpp index 64bcbbadba..bf5b5efc18 100644 --- a/redfish-core/lib/hypervisor_system.hpp +++ b/redfish-core/lib/hypervisor_system.hpp @@ -782,7 +782,7 @@ inline void handleHypervisorEthernetInterfaceGet( return; } asyncResp->res.jsonValue["@odata.type"] = - "#EthernetInterface.v1_6_0.EthernetInterface"; + "#EthernetInterface.v1_9_0.EthernetInterface"; asyncResp->res.jsonValue["Name"] = "Hypervisor Ethernet Interface"; asyncResp->res.jsonValue["Description"] = "Hypervisor's Virtual Management Ethernet Interface"; |