mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-09 12:44:30 +02:00
bridge-port-to-default: drop unused code, :toarray strips itself
This commit is contained in:
parent
a187a4361a
commit
b239853303
1 changed files with 0 additions and 3 deletions
|
@ -10,9 +10,6 @@
|
||||||
|
|
||||||
:foreach interface in=[ / interface bridge port find where comment!="" ] do={
|
:foreach interface in=[ / interface bridge port find where comment!="" ] do={
|
||||||
:foreach comment in=[ :toarray [ / interface bridge port get $interface 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={
|
:if ([ :pick $comment 0 $len ] = ($"bridge-port-to" . ":")) do={
|
||||||
:local "interface-name" [ / interface bridge port get $interface interface ];
|
:local "interface-name" [ / interface bridge port get $interface interface ];
|
||||||
:local "bridge-default" [ :pick $comment $len [ :len $comment ] ];
|
:local "bridge-default" [ :pick $comment $len [ :len $comment ] ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue