From b239853303a0ae384f411ee1be3da2a1a7334231 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 25 Oct 2018 12:15:08 +0200 Subject: [PATCH] bridge-port-to-default: drop unused code, :toarray strips itself --- bridge-port-to-default | 3 --- 1 file changed, 3 deletions(-) diff --git a/bridge-port-to-default b/bridge-port-to-default index 572b3be..3a62a57 100644 --- a/bridge-port-to-default +++ b/bridge-port-to-default @@ -10,9 +10,6 @@ :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 $comment 1 [ :len $comment ] ]; - } :if ([ :pick $comment 0 $len ] = ($"bridge-port-to" . ":")) do={ :local "interface-name" [ / interface bridge port get $interface interface ]; :local "bridge-default" [ :pick $comment $len [ :len $comment ] ];