]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Add a warning if we try to use the last reserved ASN 10288/head
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Wed, 5 Jan 2022 09:42:52 +0000 (11:42 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 7 Jan 2022 20:35:04 +0000 (22:35 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_vty.c
doc/user/overview.rst

index e3340985c47b85b85a9eec7bdbb05badbb98d12d..193a237132a922499da671cfe74174ee65241f9b 100644 (file)
@@ -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;
index 85a6758fdb749da44565fe9e9ef68034c3ff880d..d6a721bddb6a498c507bea4f9daa2fc880546eed 100644 (file)
@@ -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`