aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/bridge-port-to3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/bridge-port-to b/mod/bridge-port-to
index c2ab55b..36b827b 100644
--- a/mod/bridge-port-to
+++ b/mod/bridge-port-to
@@ -42,7 +42,10 @@
/ip/dhcp-client/disable $DHCPClient;
:delay 200ms;
}
+ /interface/ethernet/disable [ find where name=$BridgePortVal->"interface" ];
/interface/bridge/port/set disabled=no bridge=$BridgeDefault $BridgePort;
+ :delay 500ms;
+ /interface/ethernet/enable [ find where name=$BridgePortVal->"interface" ];
} else={
$LogPrintExit2 debug $0 ("Interface " . $BridgePortVal->"interface" . " already connected to " . $BridgePortTo . \
" bridge " . $BridgeDefault . ".") false;