mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
mod/bridge-port-to: log when re-enabling interfaces
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
:set BridgePortTo do={
|
||||
:local BridgePortTo [ :tostr $1 ];
|
||||
|
||||
:global CharacterReplace;
|
||||
:global IfThenElse;
|
||||
:global LogPrintExit2;
|
||||
:global ParseKeyValueStore;
|
||||
@@ -56,6 +57,8 @@
|
||||
}
|
||||
:if ([ :len $InterfaceReEnable ] > 0) do={
|
||||
:delay 2s;
|
||||
$LogPrintExit2 info $0 ("Re-enabling interfaces: " . \
|
||||
[ $CharacterReplace [ :tostr $InterfaceReEnable ] ";" " " ]) false;
|
||||
:foreach Interface in=$InterfaceReEnable do={
|
||||
/interface/ethernet/enable [ find where name=$Interface ];
|
||||
}
|
||||
|
Reference in New Issue
Block a user