diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-08 21:57:47 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-09 16:34:06 +0200 |
commit | c0945b78286ae88644e6e423b1b4ef0d783d1063 (patch) | |
tree | 4e3c3db551e47481230722cf6c896059abef8d9c /bgpd/bgp_vty.c | |
parent | Merge pull request #10981 from opensourcerouting/vty-wrmem-newline (diff) | |
download | frr-c0945b78286ae88644e6e423b1b4ef0d783d1063.tar.xz frr-c0945b78286ae88644e6e423b1b4ef0d783d1063.zip |
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 '')
-rw-r--r-- | bgpd/bgp_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 941696ab7..f0a4a56f4 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -14473,7 +14473,7 @@ static void community_show_all_iterator(struct hash_bucket *bucket, com = (struct community *)bucket->data; vty_out(vty, "[%p] (%ld) %s\n", (void *)com, com->refcnt, - community_str(com, false)); + community_str(com, false, false)); } /* Show BGP's community internal data. */ @@ -14502,7 +14502,7 @@ static void lcommunity_show_all_iterator(struct hash_bucket *bucket, lcom = (struct lcommunity *)bucket->data; vty_out(vty, "[%p] (%ld) %s\n", (void *)lcom, lcom->refcnt, - lcommunity_str(lcom, false)); + lcommunity_str(lcom, false, false)); } /* Show BGP's community internal data. */ @@ -19354,9 +19354,9 @@ static const char *community_list_config_str(struct community_entry *entry) str = ""; else { if (entry->style == COMMUNITY_LIST_STANDARD) - str = community_str(entry->u.com, false); + str = community_str(entry->u.com, false, false); else if (entry->style == LARGE_COMMUNITY_LIST_STANDARD) - str = lcommunity_str(entry->u.lcom, false); + str = lcommunity_str(entry->u.lcom, false, false); else str = entry->config; } |