On 15.09.2018 11:46, Saku Ytti wrote:
You could recreate the route via static route and depend on existing
one. In static route you can attach AS-PATH in any way you want.
route 2.20.144.0/22 unreachable {
bgp_local_pref = 0;
bgp_path.prepend(20940);
bgp_path.prepend(20940);
bgp_path.prepend(10429);
bgp_path.prepend(12956);
};
You can also do it in a filter for paths received, e.g., via bgp. Bird
allows you to clear as path, prepend it, and delete specific asns from
the path.
And just FYI, Saku's code snippet will create as path like this: 12956
10429 20940 20940.
Piotr
--
Piotr 'GhosT' Wydrych ...... Senior II Lead Sw. Eng., SDN ....... Akamai
........................................................................
A: Because it messes up the order in which people normally read text. ..
Q: Why is top-posting such a bad thing? ................................