mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
bridge-port-to-default: better check for non-empty value
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global ParseKeyValueStore;
|
: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 ];
|
:local BridgePortVal [ / interface bridge port get $BridgePort ];
|
||||||
:foreach Config,BridgeDefault in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={
|
:foreach Config,BridgeDefault in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={
|
||||||
:if ($Config = $BridgePortTo) do={
|
:if ($Config = $BridgePortTo) do={
|
||||||
|
Reference in New Issue
Block a user