mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00:00
Merge pull request #17305 from opensourcerouting/fix/bgp_community_list_numbered
bgpd: Treat numbered community-list only if it's in a range 1-500
This commit is contained in:
commit
318e983a59
@ -182,7 +182,7 @@ community_list_insert(struct community_list_handler *ch, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* In case of name is all digit character */
|
/* In case of name is all digit character */
|
||||||
if (i == strlen(name)) {
|
if (i == strlen(name) && number <= COMMUNITY_LIST_NUMBER_MAX) {
|
||||||
new->sort = COMMUNITY_LIST_NUMBER;
|
new->sort = COMMUNITY_LIST_NUMBER;
|
||||||
|
|
||||||
/* Set access_list to number list. */
|
/* Set access_list to number list. */
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
/* Number and string based community-list name. */
|
/* Number and string based community-list name. */
|
||||||
#define COMMUNITY_LIST_STRING 0
|
#define COMMUNITY_LIST_STRING 0
|
||||||
#define COMMUNITY_LIST_NUMBER 1
|
#define COMMUNITY_LIST_NUMBER 1
|
||||||
|
/* The numbered community-list (including large/ext communities)
|
||||||
|
* have a range between 1-500.
|
||||||
|
*/
|
||||||
|
#define COMMUNITY_LIST_NUMBER_MAX 500
|
||||||
|
|
||||||
#define COMMUNITY_SEQ_NUMBER_AUTO -1
|
#define COMMUNITY_SEQ_NUMBER_AUTO -1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user