mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 12:24:28 +02:00
bridge-port-to-default: better check for non-empty value
This commit is contained in:
parent
fae28357c7
commit
5c7cde6227
1 changed files with 1 additions and 1 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue