daemon: revert wlan mac learning change, due to undesired default behavior, there may be some cases where this behavior is desired, so the option to enable a promiscuous mode has been added and will be present in core-pygui
This commit is contained in:
parent
d1c2b1bdb9
commit
e7320a61a6
3 changed files with 23 additions and 6 deletions
|
@ -286,14 +286,15 @@ class 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 Linux bridge.
|
||||
Set mac learning for a Linux bridge.
|
||||
|
||||
:param name: bridge name
|
||||
:param value: ageing time value
|
||||
:return: nothing
|
||||
"""
|
||||
self.run(f"{IP} link set {name} type bridge ageing_time 0")
|
||||
self.run(f"{IP} link set {name} type bridge ageing_time {value}")
|
||||
|
||||
|
||||
class OvsNetClient(LinuxNetClient):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue