mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
mod/bridge-port-to: add interface down and up
This helps the client to detect the change.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user