daemon: adjustments to support global configurable mtu values for node interfaces and bridges
This commit is contained in:
parent
5ff4447528
commit
0b531d7fd8
9 changed files with 72 additions and 50 deletions
|
@ -296,6 +296,16 @@ class LinuxNetClient:
|
|||
"""
|
||||
self.run(f"{IP} link set {name} type bridge ageing_time {value}")
|
||||
|
||||
def set_mtu(self, name: str, value: int) -> None:
|
||||
"""
|
||||
Sets the mtu value for a device.
|
||||
|
||||
:param name: name of device to set value for
|
||||
:param value: mtu value to set
|
||||
:return: nothing
|
||||
"""
|
||||
self.run(f"{IP} link set {name} mtu {value}")
|
||||
|
||||
|
||||
class OvsNetClient(LinuxNetClient):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue