BGP community filter

Hello!

Again I'm in troubles:

/ip route print detail where dst-address=31.44.12.0/23
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 ADb dst-address=31.44.12.0/23 gateway=31.44.12.203
gateway-status=31.44.12.203 reachable via VL1.150 distance=200 scope=40 target-scope=30
bgp-local-pref=900 bgp-med=0 bgp-origin=igp bgp-communities=65070:101
received-from=lix-v4-bsd


/ip route print where bgp-communities=65070:101
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE



What's wrong???

And is there a way to test route filter before applying it to peer? As ciso:
route-map XXXX....
show ip bgp route-map XXXX

Try

/ip route print where bgp-communities="65070:101"

No, the right version is
/ip route print where bgp-communities ~ “65070:101”

And this is wondering why so different syntax.

Regards,
Boris

Because communities is an array. And array cannot be equal with a string. So you should use ~ which translates as is bgp community contains xx:xx.
Or you could convert your string to an array
/ip route print where bgp-communities=[:toarray “65070:101”]

thank you for clarification!