mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 20:22:36 +00:00
bgpd: Fix condition allowas-in in rsclient code
Currently when you set neighbour's 'allowas-in' option on route server side you get redistribution of the prefixes from this neighbour's table into all neighbour's tables which have the same AS number. I think that wanted behaviour is to allow import prefixes from neighbour's tables with the same AS num into neighbour which has 'allowas-in' option set. Signed-off-by: Milan Kocian <milon@wq.cz> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
5d804b439a
commit
000e157c85
@ -1881,7 +1881,7 @@ bgp_update_rsclient (struct peer *rsclient, afi_t afi, safi_t safi,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* AS path loop check. */
|
/* AS path loop check. */
|
||||||
if (aspath_loop_check (attr->aspath, rsclient->as) > peer->allowas_in[afi][safi])
|
if (aspath_loop_check (attr->aspath, rsclient->as) > rsclient->allowas_in[afi][safi])
|
||||||
{
|
{
|
||||||
reason = "as-path contains our own AS;";
|
reason = "as-path contains our own AS;";
|
||||||
goto filtered;
|
goto filtered;
|
||||||
|
Loading…
Reference in New Issue
Block a user