aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge-port-to-default2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge-port-to-default b/bridge-port-to-default
index 3b6ded1..572b3be 100644
--- a/bridge-port-to-default
+++ b/bridge-port-to-default
@@ -11,7 +11,7 @@
:foreach interface in=[ / interface bridge port find where comment!="" ] do={
:foreach comment in=[ :toarray [ / interface bridge port get $interface comment ] ] do={
:if ([ :pick $comment 0 ] = " ") do={
- :set comment [ :pick $commecnt 1 [ :len $commecnt ] ];
+ :set comment [ :pick $comment 1 [ :len $comment ] ];
}
:if ([ :pick $comment 0 $len ] = ($"bridge-port-to" . ":")) do={
:local "interface-name" [ / interface bridge port get $interface interface ];