daemon: fixed p2p nodes to disable mac learning, with new usage to tie together all wired links, this feature is not desired

This commit is contained in:
Blake Harnden 2023-02-03 15:05:03 -08:00
parent 4f2e20a0a0
commit d4997bbc04

View file

@ -647,6 +647,15 @@ class PtpNet(CoreNetwork):
raise CoreError("ptp links support at most 2 network interfaces") raise CoreError("ptp links support at most 2 network interfaces")
super().attach(iface) super().attach(iface)
def startup(self) -> None:
"""
Startup for a p2p node, that disables mac learning after normal startup.
:return: nothing
"""
super().startup()
self.net_client.set_mac_learning(self.brname, LEARNING_DISABLED)
class SwitchNode(CoreNetwork): class SwitchNode(CoreNetwork):
""" """