diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-07-04 14:42:19 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-07-04 14:42:19 +0300 |
| commit | 0dfe25697f5299326046fcfb66f2c6beca7c423c (patch) | |
| tree | 081c260eff7eca95aef125f7197cd3f3a2a7e59b /bgpd/bgp_attr.c | |
| parent | d4758b3ccc76c77d0b8ba255089f79e67379bb30 (diff) | |
bgpd: Implement `neighbor X remote-as auto`
In some cases (large scale) it's desired to avoid changing configurations, but
let the BGP to automatically handle ASN changes.
`auto` means the peering can be iBGP or eBGP. It will be automatically detected
and adjusted from the OPEN message.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_attr.c')
| -rw-r--r-- | bgpd/bgp_attr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 18c7b13535..f2f7cfa93d 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -4468,6 +4468,8 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer, bgp_packet_mpattr_end(s, mpattrlen_pos); } + (void)peer_sort(peer); + /* Origin attribute. */ stream_putc(s, BGP_ATTR_FLAG_TRANS); stream_putc(s, BGP_ATTR_ORIGIN); |
