summaryrefslogtreecommitdiff
path: root/bgpd/bgp_community.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-04-08 22:57:47 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-04-09 17:34:06 +0300
commitc0945b78286ae88644e6e423b1b4ef0d783d1063 (patch)
tree4e3c3db551e47481230722cf6c896059abef8d9c /bgpd/bgp_community.h
parentef362a5156ff5cc358cf2efe0797bf634bb1c5a5 (diff)
bgpd: Allow setting BGP [large]community in route-maps
Before: ``` spine1-debian-11(config-route-map)# bgp community alias 65001:65001 test1 spine1-debian-11(config)# route-map rm permit 10 spine1-debian-11(config-route-map)# set community 65001:65001 % Malformed communities attribute ``` After: ``` spine1-debian-11(config)# bgp community alias 65001:65001 test1 spine1-debian-11(config)# route-map rm permit 10 spine1-debian-11(config-route-map)# set community 65001:65001 spine1-debian-11(config-route-map)# ``` Same for large-communities. 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, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_community.h b/bgpd/bgp_community.h
index 2a1fbf526a..6f0ae0235c 100644
--- a/bgpd/bgp_community.h
+++ b/bgpd/bgp_community.h
@@ -76,7 +76,8 @@ extern struct community *community_uniq_sort(struct community *);
extern struct community *community_parse(uint32_t *, unsigned short);
extern struct community *community_intern(struct community *);
extern void community_unintern(struct community **);
-extern char *community_str(struct community *, bool make_json);
+extern char *community_str(struct community *, bool make_json,
+ bool translate_alias);
extern unsigned int community_hash_make(const struct community *);
extern struct community *community_str2com(const char *);
extern bool community_match(const struct community *, const struct community *);