diff options
author | Christian Hesse <mail@eworm.de> | 2018-10-25 11:38:20 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-10-25 11:38:20 +0200 |
commit | a187a4361a87665324b1a511df7efe43c5ab4909 (patch) | |
tree | 3d72821989b4a5bc8c5bb2bc66f02a275ec97338 /bridge-port-to-default | |
parent | b62f9b7a65cc4c0bdbcda18a9d17f31dd03303d8 (diff) |
bridge-port-to-default: fix variable name
Diffstat (limited to 'bridge-port-to-default')
-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 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 ]; |