Network: Add support for MTU propery
This commit adds support for the MTU property under
the "xyz.openbmc_project.Network.EthernetInterface" interface.
This property shows the maximum size of the Protocol Data Uint
(PDU) in bytes, that can be passed in an Ethernet frame on the
network interface.
Tested:
Verified this property on "xyz.openbmc_project.Network.EthernetInterface"
interface.
busctl introspect xyz.openbmc_project.Network /xyz/openbmc_project/network/eth3
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
xyz.openbmc_project.Network.EthernetInterface interface - - -
.MTU property u 1500 emits-change writable
Signed-off-by: Tejas Patil <tejaspp@ami.com>
Change-Id: I3aa758edf5cfee25c928934c315d705920094c00
diff --git a/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml b/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
index 2c3c108..d8b6d2f 100644
--- a/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
+++ b/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
@@ -18,6 +18,12 @@
description: >
This indicates if the speed and duplex are automatically negotiated
and configured on this ethernet interface.
+ - name: MTU
+ type: size
+ default: 0
+ description: >
+ This indicates the size in bytes of largest protocol data unit,
+ which can be passed in an Ethernet frame on the interface.
- name: DomainName
type: array[string]
description: >