diff options
author | Christian Hesse <mail@eworm.de> | 2020-09-01 23:39:34 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-09-01 23:39:34 +0200 |
commit | 5c7cde6227499cca1ea53891098098c7e727312c (patch) | |
tree | bdac2a394ebd685bf0f77069f6c75da035106fb2 | |
parent | fae28357c7cd739f7d0b96c81b4933bdfcd4466a (diff) |
bridge-port-to-default: better check for non-empty value
-rw-r--r-- | bridge-port-to-default | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge-port-to-default b/bridge-port-to-default index 7051f34..55d383a 100644 --- a/bridge-port-to-default +++ b/bridge-port-to-default @@ -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={ |