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

mod/bridge-port-to: 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:25 +02:00
parent 164ebe8c8a
commit 8436a18919

@ -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,BridgeDefault in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={