bond do not find mode

hello

if you add a bond like this:

add comment=3c3937ff4aa945626e0ecf0c86bb2446 mode=active-backup mtu=9200 name=sw10 slaves=te0-sw10-1-p41,te1-sw10-2-p41

or
add address=169.254.7.25/30 network=169.254.7.24

this do not work

:put [find mode=active-backup ]
:put [find address=169.254.7.25/30 ]

why is this happend

meno

I played around with this again and

:put [find mode=“active-backup” ]

adding quotes to the find expression does the job but i know when to add quotes and when not

meno

I worked this day and discovered a very odd behavior of the router os.

So there are alot of problems that should be fixed by mikrotik.

  1. The boolean Type
    You can write only with yes and no but to compare you need “true”(quotes) “false”.
 :if (($a->"disabled")="false") do={ :put "FALSE" } else={ :put "TRUE" }
  1. The interval Type 1s,1h,10m,1d
    You can write these values but to compare you need to test agains these pattern:
  • 1s 00:00:01
  • 10m 00:10:00
  • 1h 1:00:00
  • 1d 1d00:00:00
  1. Type List
    you have to write with name1,name2 (comma seperator)
    to compare you need to put quotes around and use a semicolon as seperator.
  2. Address Type
    you write without quotes 2000:0:3::3:4:1
    to compare you need to unify the address to this pattern mean the first zeros will be
    substituded to a double colon. Like this “2000::3:0:3:4:1”. It would be nice if the compare
    on addresses works bitwise and not lexical. The addresstype has sometimes a network
    prefix but i didn’t found any documentation when a networktype is used or the addresstype.

meno