daemon: updated ovs net client to use proper set_mac_learning function, due to code changes prior

This commit is contained in:
Blake Harnden 2021-10-27 08:23:54 -07:00
parent 209303b085
commit 04fb3322b5

View file

@ -361,14 +361,15 @@ class OvsNetClient(LinuxNetClient):
return True return True
return False 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 name: bridge name
:param value: ageing time value
:return: nothing :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: def get_net_client(use_ovs: bool, run: Callable[..., str]) -> LinuxNetClient: