diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-05-25 21:14:28 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-09-09 17:33:37 +0300 |
commit | 188cb6294105a045a445619415d01843de8c3732 (patch) | |
tree | ecb1e9a7807ef7626577bd707242da8f4bb7dcc7 /redfish-core | |
parent | 62bafc01bf4f4e2017d4a9e8d6d053f24ca30563 (diff) | |
download | bmcweb-188cb6294105a045a445619415d01843de8c3732.tar.xz |
ethernet: Bump EthernetInterface schema 1.4.1 -> 1.6.0
EthernetInterface v1.6.0 adds EthernetInterfaceType property indicating
the type (either Physical or Virtual) of an interface. This property
will be used by the incoming change #53186 which exposes VLAN interface
as EthernetInterface.
Since the "VLANs" property deprecated from v1.7.0 is still needed for
creating/deleting VLAN interfaces, bmcweb won't bump to a newer schema
version until Redfish spec defines a better way for it.
Tested:
Redfish validator passed.
Change-Id: I9e005e10b0b38046a2a222264b01c6e6223ebf31
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 4 | ||||
-rw-r--r-- | redfish-core/lib/hypervisor_system.hpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 9c985d9182..9fb125d280 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -1828,8 +1828,10 @@ 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_4_1.EthernetInterface"; + "#EthernetInterface.v1_6_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 5c60016841..b75dec1390 100644 --- a/redfish-core/lib/hypervisor_system.hpp +++ b/redfish-core/lib/hypervisor_system.hpp @@ -856,7 +856,7 @@ inline void requestRoutesHypervisorSystems(App& app) return; } asyncResp->res.jsonValue["@odata.type"] = - "#EthernetInterface.v1_5_1.EthernetInterface"; + "#EthernetInterface.v1_6_0.EthernetInterface"; asyncResp->res.jsonValue["Name"] = "Hypervisor Ethernet Interface"; asyncResp->res.jsonValue["Description"] = "Hypervisor's Virtual Management Ethernet Interface"; |