mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 11:34:31 +02:00
mod/bridge-port-to: log when re-enabling interfaces
This commit is contained in:
parent
1e894289ea
commit
66b7fccd30
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
:set BridgePortTo do={
|
:set BridgePortTo do={
|
||||||
:local BridgePortTo [ :tostr $1 ];
|
:local BridgePortTo [ :tostr $1 ];
|
||||||
|
|
||||||
|
:global CharacterReplace;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
|
@ -56,6 +57,8 @@
|
||||||
}
|
}
|
||||||
:if ([ :len $InterfaceReEnable ] > 0) do={
|
:if ([ :len $InterfaceReEnable ] > 0) do={
|
||||||
:delay 2s;
|
:delay 2s;
|
||||||
|
$LogPrintExit2 info $0 ("Re-enabling interfaces: " . \
|
||||||
|
[ $CharacterReplace [ :tostr $InterfaceReEnable ] ";" " " ]) false;
|
||||||
:foreach Interface in=$InterfaceReEnable do={
|
:foreach Interface in=$InterfaceReEnable do={
|
||||||
/interface/ethernet/enable [ find where name=$Interface ];
|
/interface/ethernet/enable [ find where name=$Interface ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue