aboutsummaryrefslogtreecommitdiffstats
path: root/bridge-port-to-default
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-10-25 12:15:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-10-25 12:15:08 +0200
commitb239853303a0ae384f411ee1be3da2a1a7334231 (patch)
treee6f4920c960b92acc59bd0192b20c19b209d1111 /bridge-port-to-default
parenta187a4361a87665324b1a511df7efe43c5ab4909 (diff)
bridge-port-to-default: drop unused code, :toarray strips itself
Diffstat (limited to 'bridge-port-to-default')
-rw-r--r--bridge-port-to-default3
1 files changed, 0 insertions, 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 ] ];