mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mod/bridge-port-vlan: add interface down and up
This helps the client to detect the change.
This commit is contained in:
parent
194f14cc13
commit
4e7c1df7ee
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue