pathvector icon indicating copy to clipboard operation
pathvector copied to clipboard

Priority of community-prefs and as-prefs

Open canoziia opened this issue 2 years ago • 0 comments

I found that when I set both community-prefs and as-prefs in the same session, in the generated bird configuration file, the corresponding position of as-prefs is above community-prefs, like this:

if (6939 ~ bgp_path) then { bgp_local_pref = 150; }
if ((123456,0,200) ~ bgp_large_community) then { bgp_local_pref = 95; }

so community-prefs will overwrite some values in as-prefs.

Is this the original intention? I guess put as-prefs under community-prefs is better, but changing the order may let the old config work in the unexpected way.

canoziia avatar Sep 23 '23 13:09 canoziia