On RR , I wana change some vpnv4 routes community Filter by prefix
In /routing/route , I can print detail by where dst-address in 100.64.0.0/16
[admin@LAB6-R1] /routing/route> pr detail where dst-address in 100.64.0.0/16
Flags: X - DISABLED, F - FILTERED, U - UNREACHABLE, A - ACTIVE;
c - CONNECT, s - STATIC, r - RIP, b - BGP, n - BGP-NET, o - OSPF, i - ISIS, d - DHCP, v - VPN, m - MODEM, a - LDP-ADDRESS, l - LDP-MAPPING, g - SLAA>
H - HW-OFFLOADED; + - ECMP, B - BLACKHOLE
Ab afi=vpnv4 contribution=active dst-address=100.64.2.100/32&2:100 routing-table=main label=16 gateway=1.1.1.2 immediate-gw=10.21.0.2%vlan21
distance=200 scope=40 target-scope=30 belongs-to="bgp-VPNv4-1.1.1.2"
bgp.session=bgp1-1-to-2-1 .ext-communities=rt:1:100 .local-pref=100 .origin=incomplete
debug.fwp-ptr=0x20342180
But when i add filter rule by "dst in 100.64.0.0/16" , it doesn't work
if (afi vpnv4 && dst-len == 32 && dst in 100.64.0.0/16){append bgp-ext-communities rt:1:600;accept }
we can find the detail about vpnv4 route "dst-address=100.64.2.100/32&2:100" , it add "&RD" info , that maybe the key.
but why it can be matched by "dst-address in 100.64.0.0/16" when print , and can not be matched by routing-filter, This confuses me a lot , What is the correct operation