bgpd: Fix comment for ecommunity_ecom2str()

Reformat and align to be readable.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2023-06-29 22:44:43 +03:00
parent 0ed36319a0
commit a08d696f8e

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;