]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: recalc peer's sort after changing confed peers 8678/head
authorAlexander Chernavin <achernavin@netgate.com>
Mon, 17 May 2021 09:34:03 +0000 (05:34 -0400)
committerAlexander Chernavin <achernavin@netgate.com>
Mon, 17 May 2021 10:33:27 +0000 (06:33 -0400)
commitb50a061064c44bd5d793d2559072052c25881333
tree09d5bb7c49722f809c77f29517eb2dfc42a87b3a
parent4d1bf2b1295760da8173b3bec7359d7a84f8a491
bgpd: recalc peer's sort after changing confed peers

Currently, when AS number of an existing BGP neighbor is added in a BGP
confederation, AS_CONFED_SEQUENCE segment attribute will be missing in
prefixes advertised to the neighbor. Also, receiving prefixes from the
neighbor will be withdrawn because of "Malformed AS path from A.B.C.D".

    neighbor 10.100.200.3 remote-as 123
    bgp confederation identifier 65001
    bgp confederation peers 123

With this change, update peer's sort after adding or removing its AS
number in a BGP confederation.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
bgpd/bgpd.c