Merge pull request #13883 from opensourcerouting/fix/comment_for_ecommunity_ecom2str

bgpd: Fix comment for ecommunity_ecom2str()
This commit is contained in:
Donald Sharp 2023-07-01 14:32:36 -04:00 committed by GitHub
commit e9d6feed8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1052,28 +1052,26 @@ static int ecommunity_lb_str(char *buf, size_t bufsz, const uint8_t *pnt,
} }
/* Convert extended community attribute to string. /* Convert extended community attribute to string.
* Due to historical reason of industry standard implementation, there
Due to historical reason of industry standard implementation, there * are three types of format:
are three types of format. *
* route-map set extcommunity format:
route-map set extcommunity format * "rt 100:1 100:2soo 100:3"
"rt 100:1 100:2soo 100:3" *
* extcommunity-list:
extcommunity-list * "rt 100:1 rt 100:2 soo 100:3"
"rt 100:1 rt 100:2 soo 100:3 *
show [ip] bgp" * show bgp:
and extcommunity-list regular expression matching * "RT:100:1 RT:100:2 SoO:100:3"
"RT:100:1 RT:100:2 SoO:100:3" *
* For each format please use below definition for format:
For each format please use below definition for format: * ECOMMUNITY_FORMAT_ROUTE_MAP
* ECOMMUNITY_FORMAT_COMMUNITY_LIST
ECOMMUNITY_FORMAT_ROUTE_MAP * ECOMMUNITY_FORMAT_DISPLAY
ECOMMUNITY_FORMAT_COMMUNITY_LIST *
ECOMMUNITY_FORMAT_DISPLAY * Filter is added to display only ECOMMUNITY_ROUTE_TARGET in some cases.
* 0 value displays all.
Filter is added to display only ECOMMUNITY_ROUTE_TARGET in some cases. */
0 value displays all
*/
char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter) char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
{ {
uint32_t i; uint32_t i;