diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-05 11:42:52 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-07 22:35:04 +0200 |
| commit | cc413e2aded6cbf8aba898de072bda4adcd34eee (patch) | |
| tree | 16568309e410eaec2b0023f00bda009b92d809d6 | |
| parent | 541b51a5a3bc96af54f451d2107a608bd57bdb42 (diff) | |
bgpd: Add a warning if we try to use the last reserved ASN
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
| -rw-r--r-- | bgpd/bgp_vty.c | 4 | ||||
| -rw-r--r-- | doc/user/overview.rst | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e3340985c4..193a237132 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -1348,6 +1348,10 @@ DEFUN_NOSH (router_bgp, else { as = strtoul(argv[idx_asn]->arg, NULL, 10); + if (as == BGP_PRIVATE_AS_MAX || as == BGP_AS4_MAX) + vty_out(vty, "Reserved AS used (%u|%u); AS is %u\n", + BGP_PRIVATE_AS_MAX, BGP_AS4_MAX, as); + inst_type = BGP_INSTANCE_TYPE_DEFAULT; if (argc > 3) { name = argv[idx_vrf]->arg; diff --git a/doc/user/overview.rst b/doc/user/overview.rst index 85a6758fdb..d6a721bddb 100644 --- a/doc/user/overview.rst +++ b/doc/user/overview.rst @@ -353,6 +353,8 @@ BGP :t:`Deprecation of BGP Path Attributes: DPA, ADVERTISER, and RCID_PATH / CLUSTER_ID. J. Scudder. May 2013.` - :rfc:`7196` :t:`Making Route Flap Damping Usable. C. Pelsser, R. Bush, K. Patel, P. Mohapatra, O. Maennel. May 2014.` +- :rfc:`7300` + :t:`Reservation of Last Autonomous System (AS) Numbers. J. Haas, J. Mitchell. July 2014.` - :rfc:`7313` :t:`Enhanced Route Refresh Capability for BGP-4. K. Patel, E. Chen, B. Venkatachalapathy. July 2014.` - :rfc:`7606` |
