summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-03-26 12:09:27 +0800
committeranlan_cs <vic.lan@pica8.com>2022-03-27 13:02:05 +0800
commit3b7e8d0f49b995161c6ff1e4d0ada2e04acd831b (patch)
treed5741b671c52c8fce54a6678b42fc482b9eadebe /bgpd/bgp_ecommunity.c
parent52093e0f0e5753b753ae1b048f69b979ed3c75f6 (diff)
bgpd: small simplification for evpn RT commands
Small simplification for evpn RT commands, i.e. both per-VRF and per-VNI - `bgp_evpn_vrf_rt_cmd` and `bgp_evpn_vni_rt_cmd`. Just extract the duplicated code as a common code, there are no functional changes. Additionally correct one comment for `ecommunity_free()`. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
-rw-r--r--bgpd/bgp_ecommunity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 5a053a7f34..08caa24a1b 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -63,7 +63,7 @@ void ecommunity_strfree(char **s)
XFREE(MTYPE_ECOMMUNITY_STR, *s);
}
-/* Allocate ecommunities. */
+/* Free ecommunities. */
void ecommunity_free(struct ecommunity **ecom)
{
if (!(*ecom))