1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

mod/bridge-port-vlan: update initialization of empty array

Having the parenthesis here is important for valid syntax!
This commit is contained in:
Christian Hesse
2022-07-13 11:34:37 +02:00
parent 8436a18919
commit 34ea276469

View File

@@ -15,7 +15,7 @@
:global LogPrintExit2;
:global ParseKeyValueStore;
:local InterfaceReEnable [ :toarray "" ];
:local InterfaceReEnable ({});
:foreach BridgePort in=[ /interface/bridge/port/find where !(comment=[]) ] do={
:local BridgePortVal [ /interface/bridge/port/get $BridgePort ];
:foreach Config,Vlan in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={