From d5cac1a4ef49f4159f3b95f53a405f81d785711b Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 27 Jun 2022 12:44:11 +0200 Subject: [PATCH] Route attribute display now normalizes ea_lists. This is needed to display every attribute only once with overlay attribute lists recently introduced. --- nest/rt-attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 0881b61b..049dc72a 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1376,9 +1376,9 @@ ea_dump_all(void) void ea_show_list(struct cli *c, ea_list *eal) { - for( ; eal; eal=eal->next) - for(int i=0; icount; i++) - ea_show(c, &eal->attrs[i]); + ea_list *n = ea_normalize(eal, 0); + for (int i =0; i < n->count; i++) + ea_show(c, &n->attrs[i]); } /**