mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-24 10:48:54 +02:00
mod/bridge-port-to: add interface down and up
This helps the client to detect the change.
This commit is contained in:
parent
4e7c1df7ee
commit
8c31a06b39
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue