BGP advertised address-list

Hello,

On a BGP session configured as follow (yes, it’s redacted with dummy content below). It works as expected, I get the routes I expect, and I announce those expected, however, if I modify the address-list, by let’s say removing the second subnet 1.1.2.0/24, then the route is not withdrawn from my BGP announcement, at least not as seen by the /routing/bgp/advertisements command.

I have tried to refresh and resend on that BGP session, but it makes no difference. Am I doing something wrong? Is this a known issue of some type? Is there another way to withdraw a prefix announced in a BGP session with another solution than flapping the session altogether?

Thanks.

BGP session

/routing bgp connection
add address-families=ip \
 as=100 disabled=no input.filter=bgp_in_rpki local.address=1.2.3.6 .role=ebgp-customer name=AS3356 \
 output.filter-chain=bgp_out_as3356 .keep-sent-attributes=no .network=bgp_as3303 remote.address=1.2.3.5/32 \
 .as=3356 router-id=1.2.3.6 routing-table=main

Filter

/routing filter rule
add chain=bgp_out_as3356 disabled=no rule="if ( protocol bgp ) { accept }"
add chain=bgp_out_as3356 disabled=no rule="if ( protocol connected ) { accept }"
add chain=bgp_out_as3356 disabled=no rule="if (dst in bgp_as3356) { accept } else { reject }"

Address-list

/ip firewall address-list
add address=1.1.1.0/24 comment="BGP test subnet" list=bgp_as3356
add address=1.1.2.0/24 comment="BGP test subnet" list=bgp_as3356

Forget me, it actually works fine. The filter is not properly written.

Hi
Can you copy the working configuration?