]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fix legacy formatting of community attributes thread-next
authorAlexander Zubkov <green@qrator.net>
Tue, 23 Sep 2025 14:27:08 +0000 (16:27 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 23 Sep 2025 14:27:08 +0000 (16:27 +0200)
Fix an issue that when a socket is configured with 'v2 attributes'
some attributes weren not shown in v2 format.

nest/rt-attr.c

index 3aaca0a463ecc2ee8ceeb2979da33e35e4be0b04..b28744af3a813a1817767c06439109c7bd75b55d 100644 (file)
@@ -1341,13 +1341,13 @@ ea_show(struct cli *c, const eattr *e)
          as_path_format(ad, pos, end - pos);
          break;
        case T_CLIST:
-         ea_show_int_set(c, cls->name, ad, ISF_COMMUNITY_LIST, buf);
+         ea_show_int_set(c, name, ad, ISF_COMMUNITY_LIST, buf);
          return;
        case T_ECLIST:
-         ea_show_ec_set(c, cls->name, ad, buf);
+         ea_show_ec_set(c, name, ad, buf);
          return;
        case T_LCLIST:
-         ea_show_lc_set(c, cls->name, ad, buf);
+         ea_show_lc_set(c, name, ad, buf);
          return;
        case T_STRING:
          bsnprintf(pos, end - pos, "%s", (const char *) ad->data);