summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_community.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-02-17 17:28:17 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-02-17 17:53:01 +0100
commit81a57d81812115bdbab25168e86e509e2db607a1 (patch)
treec3b8ccb821d3352d88d5741c4f016ba54690df0a /bgpd/bgp_community.h
parentMerge pull request #12780 from opensourcerouting/spdx-license-id (diff)
downloadfrr-81a57d81812115bdbab25168e86e509e2db607a1.tar.xz
frr-81a57d81812115bdbab25168e86e509e2db607a1.zip
bgpd: Deprecate BGP `internet` community
Quite a few well-known communities from IANA's list do not receive special treatment in Cisco IOS XR, and at least one community on Cisco IOS XR's special treatment list, internet == 0:0, is not formally a well-known community as it is not in [IANA-WKC] (it is taken from the Reserved range [0x00000000-0x0000FFFF]). https://datatracker.ietf.org/doc/html/rfc8642 This is Cisco-specific command which is causing lots of questions when it comes to debugging and/or configuring it properly, but overall, this behavior is very odd and it's not clear how it should be treated between different vendor implementations. Let's deprecate it and let the operators use 0:0/0 communities as they want. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_community.h')
-rw-r--r--bgpd/bgp_community.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_community.h b/bgpd/bgp_community.h
index 35909a638..e7af362ea 100644
--- a/bgpd/bgp_community.h
+++ b/bgpd/bgp_community.h
@@ -30,6 +30,9 @@ struct community {
};
/* Well-known communities value. */
+#if CONFDATE > 20230801
+CPP_NOTICE("Deprecate COMMUNITY_INTERNET BGP community")
+#endif
#define COMMUNITY_INTERNET 0x0
#define COMMUNITY_GSHUT 0xFFFF0000
#define COMMUNITY_ACCEPT_OWN 0xFFFF0001