mod/bridge-port-to: log when re-enabling interfaces

This commit is contained in:
Christian Hesse 2022-06-15 10:33:58 +02:00
parent 1e894289ea
commit 66b7fccd30

View file

@ -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 ];
}