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

This commit is contained in:
Christian Hesse 2022-06-15 10:33:34 +02:00
parent 5dc23dd267
commit 1e894289ea

View file

@ -11,6 +11,7 @@
:global BridgePortVlan do={
:local ConfigTo [ :tostr $1 ];
:global CharacterReplace;
:global IfThenElse;
:global LogPrintExit2;
:global ParseKeyValueStore;
@ -64,6 +65,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 ];
}