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:
parent
4f2e20a0a0
commit
d4997bbc04
1 changed files with 9 additions and 0 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue