Community discussions

MikroTik App
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

bug report : find where builtin=no differs from builtin!=yes

Wed Feb 21, 2018 8:08 pm

juste read this sample code wich illustrates the bug
# feb/21/2018 19:07:33 by RouterOS 6.41.2
# software id = 5Z1S-W6Y8
#
# model = 2011UiAS-2HnD
# serial number = 7A6708DD7FAF

[admin@Box-04715E] /interface list> :put [ /interface list find ]
*2000000;*2000001;*2000002;*2000010;*2000011;*2000012;*2000013;*2000014;*2000015
[admin@Box-04715E] /interface list> :put [ /interface list find where builtin=no ];

[admin@Box-04715E] /interface list> :put [ /interface list find where builtin=yes ];
*2000000;*2000001;*2000002

[admin@Box-04715E] /interface list> :put [ /interface list find where builtin!=yes ];
*2000010;*2000011;*2000012;*2000013;*2000014;*2000015
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: bug report : find where builtin=no differs from builtin!=yes

Thu Feb 22, 2018 2:14 am

Note that existence checks should work as expected:
[admin@Box-04715E] /interface list> :put [ /interface list find where builtin ];
*2000000;*2000001;*2000002

[admin@Box-04715E] /interface list> :put [ /interface list find where !builtin ];
*2000010;*2000011;*2000012;*2000013;*2000014;*2000015

Who is online

Users browsing this forum: sutrus and 85 guests