Prezados,
Pelos testes que fiz, detectei uma falha em filtros de consulta, aplicados à propriedade de modo de proteção, em interfaces bridge, no MikroTik RouterOS.
O problema pode ser reproduzido em qualquer versão do MikroTik RouterOS, entre 5.14 e 5.21. Não testei em versões anteriores, pois são muito ultrapassadas, de uso não recomendado.
O código abaixo demonstra, de forma básica, o problema existente.
Código :#Add 3 bridges, with protocol mode none, stp and rstp, respectively. /interface bridge add name=MYBRIDGE-A protocol-mode=none comment="Temp" /interface bridge add name=MYBRIDGE-B protocol-mode=stp comment="Temp" /interface bridge add name=MYBRIDGE-C protocol-mode=rstp comment="Temp"
Código :#Enumerate each interface. Teorically work, but not work :( foreach X in=[ /interface bridge find where protocol-mode=none ] do={:put ([/interface bridge get $X name ] ) } foreach X in=[ /interface bridge find where protocol-mode=stp ] do={:put ([/interface bridge get $X name ] ) } foreach X in=[ /interface bridge find where protocol-mode=rstp ] do={:put ([/interface bridge get $X name ] ) }
Código :#Print each interface found, filtered by protocol-mode. Teorically work, but not work :( /interface bridge print where protocol-mode=none /interface bridge print where protocol-mode=stp /interface bridge print where protocol-mode=rstp
Como demonstrado acima, o resultado de cada consulta não condiz com o filtro aplicado, seja "find", seja "where", em versões anteriores ao MikroTik RouterOS 5.21, inclusive.
Já abri um chamado de suporte na MikroTik, entretanto, não tive resposta até o momento.
Desejo saber se em seus ativos que rodam MikroTik RouterOS, entre 5.14 e 5.21, esse problema também acontece.
Grato,
Trober