luqasz
1
hi
i have multiple bgp peers. i want to place every peers prefixes in their own chains.
for example i have 2 peers A and B
i want to place peers A an B prefixes in chains chain-A and chain-B. my prefixes in chain-Y.
every “prefix” chain will have return action at the end.
if i place:
action=jump jump-target=chain-A set-bgp-prepend=5
will it be applied to every rule in chain-A ?
it will either be applied to every route that passed to this rule, or won’t be appliesd at all. I vote first 
what exactly do you want to do?
luqasz
3
it is applied to every rule in jump-target chain. confirmed.
i wan to store peers prefixes in one chain. thus i will not have to update every peers chain if a prefix changes.
you mean, chains of filters, or routing tables?.. for the latter use
action=accept set-routing-mark=bla-blA
if not - please explain with an example 
luqasz
5
add action=jump chain=bgp-provider-in jump-target=PROVIDER-PREFIX set-bgp-prepend=6
add action=discard chain=bgp-provider-in
add action=accept chain=PROVIDER-PREFIX prefix=x.x.x.x
add action=accept chain=PROVIDER-PREFIX prefix=x.x.x.x
add action=return chain=PROVIDER-PREFIX
this will result in setting bgp prepend to 6 for every prefix listed in PROVIDER-PREFIX chain.
you mean, it’s the solution?
what chain is used in BGP Peer?
luqasz
7
yes
bgp-provider-in (the same as specified in peer configuration)