From 04fb3322b55b763bf4e5b32a12fc1df7ae017904 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 27 Oct 2021 08:23:54 -0700 Subject: [PATCH] daemon: updated ovs net client to use proper set_mac_learning function, due to code changes prior --- daemon/core/nodes/netclient.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/core/nodes/netclient.py b/daemon/core/nodes/netclient.py index c066910b..2f87f5dd 100644 --- a/daemon/core/nodes/netclient.py +++ b/daemon/core/nodes/netclient.py @@ -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: