diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 14:56:20 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 14:56:20 +0100 |
commit | b53e67a389573b9d95a563331752e4e8b729c08f (patch) | |
tree | 46807e2486e0f603cfa8390b404a7698801d49ac /bgpd/bgp_flowspec.c | |
parent | Merge pull request #10481 from mobash-rasool/pim-doc (diff) | |
download | frr-b53e67a389573b9d95a563331752e4e8b729c08f.tar.xz frr-b53e67a389573b9d95a563331752e4e8b729c08f.zip |
bgpd: Use bgp_attr_[sg]et_ecommunity for struct ecommunity
This is an extra work before moving attr->ecommunity to attra_extra struct.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_flowspec.c')
-rw-r--r-- | bgpd/bgp_flowspec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bgpd/bgp_flowspec.c b/bgpd/bgp_flowspec.c index 341cfe9d0..de3f2a9d4 100644 --- a/bgpd/bgp_flowspec.c +++ b/bgpd/bgp_flowspec.c @@ -170,9 +170,10 @@ int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr, afi); snprintf(ec_string, sizeof(ec_string), "EC{none}"); - if (attr && attr->ecommunity) { - s = ecommunity_ecom2str(attr->ecommunity, - ECOMMUNITY_FORMAT_ROUTE_MAP, 0); + if (attr && bgp_attr_get_ecommunity(attr)) { + s = ecommunity_ecom2str( + bgp_attr_get_ecommunity(attr), + ECOMMUNITY_FORMAT_ROUTE_MAP, 0); snprintf(ec_string, sizeof(ec_string), "EC{%s}", s == NULL ? "none" : s); |