I need your help to understand the syntax for the route-map
I want to know how I need to write a route map if I want to match multiple condition if one condition fail he need to discard
For exemple I want to allow my downstream to pass my filter to my upstream for that I need to have the subnet of the downstream in a prefix list + a community BGP tagged If I don’t have 1 of the two condition I want to discard
In cisco with the RPL we have an argument “then” task 1 then task 2 then task 3 after we accept
And what is also the syntax for exemple to export a prefix list + community + and static + …
set policy community-list COM rule 10 action 'permit'
set policy community-list COM rule 10 regex '65000:666'
set policy prefix-list PREF rule 10 action 'permit'
set policy prefix-list PREF rule 10 prefix '203.0.113.0/24'
set policy route-map FOO rule 100 action 'deny'
set policy route-map FOO rule 100 match community community-list 'COM'
set policy route-map FOO rule 100 match ip address prefix-list 'PREF'
set policy route-map FOO rule 9990 action 'permit'
set policy route-map FOO rule 9990 set community replace '65000:65000'
your first action in the route-map is a deny all route in the community list and in the prefixe list will not be exported ?
Both condition in the one same rule use logical AND
when match both community and prefix
Okey and I have a last question it’s normal if I remove from a policy route-map an condition like remove an export based on community if the route map is used in a BGP session vyos leak the full routing table ^^ ?