mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
mod/bridge-port-to: log when re-enabling interfaces
This commit is contained in:
parent
1e894289ea
commit
66b7fccd30
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue