mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mod/bridge-port-vlan: log when re-enabling interfaces
This commit is contained in:
parent
5dc23dd267
commit
1e894289ea
|
@ -11,6 +11,7 @@
|
||||||
:global BridgePortVlan do={
|
:global BridgePortVlan do={
|
||||||
:local ConfigTo [ :tostr $1 ];
|
:local ConfigTo [ :tostr $1 ];
|
||||||
|
|
||||||
|
:global CharacterReplace;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
|
@ -64,6 +65,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…
Reference in a new issue