daemon: updated ovs net client to use proper set_mac_learning function, due to code changes prior
This commit is contained in:
parent
209303b085
commit
04fb3322b5
1 changed files with 4 additions and 3 deletions
|
@ -361,14 +361,15 @@ class OvsNetClient(LinuxNetClient):
|
|||
return True
|
||||
return False
|
||||
|
||||
def disable_mac_learning(self, name: str) -> None:
|
||||
def set_mac_learning(self, name: str, value: int) -> None:
|
||||
"""
|
||||
Disable mac learning for a OVS bridge.
|
||||
Set mac learning for an OVS bridge.
|
||||
|
||||
:param name: bridge name
|
||||
:param value: ageing time value
|
||||
:return: nothing
|
||||
"""
|
||||
self.run(f"{OVS_VSCTL} set bridge {name} other_config:mac-aging-time=0")
|
||||
self.run(f"{OVS_VSCTL} set bridge {name} other_config:mac-aging-time={value}")
|
||||
|
||||
|
||||
def get_net_client(use_ovs: bool, run: Callable[..., str]) -> LinuxNetClient:
|
||||
|
|
Loading…
Reference in a new issue