]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: do not allow override ASN unless hidden or auto-created
authorDon Slice <dslice@nvidia.com>
Fri, 4 Jun 2021 20:22:24 +0000 (16:22 -0400)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 18 Sep 2024 15:03:10 +0000 (18:03 +0300)
commit091abc6b28ddba893d29d90d9e5e816fadb7d188
tree683d8f0c6673dc7bd3cb57082f76608a79edc521
parent4d0e7a49cf8d4311a485281fa50bbff6ee8ca6cc
bgpd: do not allow override ASN unless hidden or auto-created

While it's okay to allow overwriting the ASN of a bgp vrf/instance
that is either hidden or automatically created, it's dangerous to
allow it on explicitly defined instances.  If that were allowed,
a typo entering the bgp config could take down existing peering,
which would be a bad thing.

Signed-off-by: Don Slice <dslice@nvidia.com>
bgpd/bgpd.c