aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-06-15 09:59:22 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-06-15 10:01:48 +0200
commit5b3b3e182b46f8434f083d1b46eee485f3d0116d (patch)
tree9425963f773849d63d7bdc73e51b62939bf0c728 /mod
parente9f00df290ca563ae44b66b41d0830ab2ce24252 (diff)
mod/bridge-port-vlan: move reenable to correct level
Diffstat (limited to 'mod')
-rw-r--r--mod/bridge-port-vlan12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/bridge-port-vlan b/mod/bridge-port-vlan
index efdaab8..fbdcda7 100644
--- a/mod/bridge-port-vlan
+++ b/mod/bridge-port-vlan
@@ -15,9 +15,9 @@
:global LogPrintExit2;
:global ParseKeyValueStore;
+ :local InterfaceReEnable [ :toarray "" ];
:foreach BridgePort in=[ /interface/bridge/port/find where !(comment=[]) ] do={
:local BridgePortVal [ /interface/bridge/port/get $BridgePort ];
- :local InterfaceReEnable [ :toarray "" ];
:foreach Config,Vlan in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={
:if ($Config = $ConfigTo) do={
:local DHCPClient [ /ip/dhcp-client/find where interface=$BridgePortVal->"interface" comment="toggle with bridge port" ];
@@ -61,11 +61,11 @@
}
}
}
- :if ([ :len $InterfaceReEnable ] > 0) do={
- :delay 2s;
- :foreach Interface in=$InterfaceReEnable do={
- /interface/ethernet/enable [ find where name=$Interface ];
- }
+ }
+ :if ([ :len $InterfaceReEnable ] > 0) do={
+ :delay 2s;
+ :foreach Interface in=$InterfaceReEnable do={
+ /interface/ethernet/enable [ find where name=$Interface ];
}
}
}