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