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>
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 97262e3..0d3ba7a 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1769,10 +1769,8 @@
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 64bcbba..bf5b5ef 100644
--- a/redfish-core/lib/hypervisor_system.hpp
+++ b/redfish-core/lib/hypervisor_system.hpp
@@ -782,7 +782,7 @@
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";