bridge-port-to-default: better check for non-empty value

This commit is contained in:
Christian Hesse 2020-09-01 23:39:34 +02:00
parent fae28357c7
commit 5c7cde6227

View file

@ -11,7 +11,7 @@
:global LogPrintExit;
:global ParseKeyValueStore;
:foreach BridgePort in=[ / interface bridge port find where comment~"." ] do={
: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={
:if ($Config = $BridgePortTo) do={