if (type == bgp_show_type_lcommunity_exact) {
struct lcommunity *lcom = output_arg;
- if (!pi->attr->lcommunity ||
- !lcommunity_cmp(
- pi->attr->lcommunity, lcom))
+ if (!bgp_attr_get_lcommunity(
+ pi->attr) ||
+ !lcommunity_cmp(
+ bgp_attr_get_lcommunity(
+ pi->attr),
+ lcom))
continue;
}
if (type == bgp_show_type_lcommunity) {
struct lcommunity *lcom = output_arg;
- if (!pi->attr->lcommunity ||
- !lcommunity_match(
- pi->attr->lcommunity, lcom))
+ if (!bgp_attr_get_lcommunity(
+ pi->attr) ||
+ !lcommunity_match(
+ bgp_attr_get_lcommunity(
+ pi->attr),
+ lcom))
continue;
}
if (type == bgp_show_type_community) {