diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-02-21 23:10:45 +0200 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-02-22 17:25:35 +0000 |
| commit | 3e2a841adeea864dd7898be3126e815c272ea1ae (patch) | |
| tree | 0e675639b4b8ff20d2603e91ea966219a0053897 /lib/hook.c | |
| parent | 2bea6210453f08329d70442b93a45953313f43b0 (diff) | |
bgpd: Pass global ASN for confederation peers if not AS_SPECIFIED
When we specify remote-as as external/internal, we need to set local_as to
bgp->as, instead of bgp->confed_id. Before this patch, (bgp->as != *as) is
always valid for such a case because *as is always 0.
Also, append peer->local_as as CONFED_SEQ to avoid other side withdrawing
the routes due to confederation own AS received and/or malformed as-path.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit db5a5ee6e4665b5f951ed2a37398820da4b762f1)
Diffstat (limited to 'lib/hook.c')
0 files changed, 0 insertions, 0 deletions
