From 7857cb8d830209fdf82db6250f5bd36c5ff01837 Mon Sep 17 00:00:00 2001 From: Jiaqing Zhao Date: Fri, 3 Mar 2023 11:23:08 +0800 Subject: Expose VLAN interfaces as EthernetInterface In OpenBMC, VLAN is a virtual interface that has its own configuration like IP address. Redfish schema 2021.2+ also suggests using individual EthernetInterface to show VLAN information. This patch exposes VLAN interfaces as EthernetInterface for configuring them. Now bmcweb also shows BMC VLAN interfaces under /redfish/v1/Managers /bmc/EthernetInterfaces. Fixes bmcweb issue #79 (Unable configure IP on VLAN interface via redfish). Tested: * Both physical and VLAN interfaces are now in the interface collection * Only VLAN interfaces have the VLAN property and RelatedInterfaces property pointing to its parent interface * IP address of both physical and VLAN interfaces can be modified by PATCH request successfully * Redfish validator passed Change-Id: I608892275cfbef4af8e7a03a10d67a9c2fa3ff53 Signed-off-by: Jiaqing Zhao Signed-off-by: Ed Tanous --- Redfish.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index 4c2dcfb17f..c416a5476b 100644 --- a/Redfish.md +++ b/Redfish.md @@ -489,6 +489,7 @@ Fields common to all schemas - DHCPv4 - DHCPv6 - Description +- EthernetInterfaceType - FQDN - HostName - IPv4Addresses @@ -498,12 +499,16 @@ Fields common to all schemas - IPv6DefaultGateway - IPv6StaticAddresses - InterfaceEnabled +- Links/RelatedInterfaces - LinkStatus - MACAddress - NameServers - SpeedMbps - StaticNameServers - Status +- VLAN/VLANEnable +- VLAN/VLANId +- VLAN/Tagged ### /redfish/v1/Managers/bmc/LogServices/ -- cgit v1.2.3