commit | 9ac2778efabd2f44d837e73256fa0d85473424cc | [log] [tgz] |
---|---|---|
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | Thu Apr 14 10:55:35 2022 +0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Apr 28 19:23:20 2022 +0000 |
tree | da113e1c546eaaa141083607a41756c7d7e2b1db | |
parent | 13feabcd57064f724f8e13623e4cf0af31fa5bc5 [diff] |
EthernetInterface: Mark InterfaceName and VLANId as const InterfaceName and VLANId are properties that never change once initialized, mark them as const. Change-Id: I0a43c732d8793d3e98666733778f10de23b08640 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml b/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml index c308748..096f5b5 100644 --- a/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml +++ b/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
@@ -6,6 +6,8 @@ properties: - name: InterfaceName type: string + flags: + - const description: > Name of the ethernet interface. - name: Speed
diff --git a/yaml/xyz/openbmc_project/Network/VLAN.interface.yaml b/yaml/xyz/openbmc_project/Network/VLAN.interface.yaml index 873b1b7..e04c36c 100644 --- a/yaml/xyz/openbmc_project/Network/VLAN.interface.yaml +++ b/yaml/xyz/openbmc_project/Network/VLAN.interface.yaml
@@ -7,9 +7,13 @@ properties: - name: InterfaceName type: string + flags: + - const description: > Name of the interface. - name: Id type: uint32 + flags: + - const description: > VLAN Identifier.