aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-06-15 10:33:58 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-06-15 16:39:49 +0200
commit66b7fccd303137d68cf571e79a0ffd7ca82f4b6a (patch)
treee8bdae45bd4a74966df564299e4f7a31e7aa8cde /mod
parent1e894289ea26a7f2b3a55b21787a7af09bbfc9ac (diff)
mod/bridge-port-to: log when re-enabling interfaces
Diffstat (limited to 'mod')
-rw-r--r--mod/bridge-port-to3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/bridge-port-to b/mod/bridge-port-to
index 415a04d..d53283d 100644
--- a/mod/bridge-port-to
+++ b/mod/bridge-port-to
@@ -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 ];
}