0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

Route attribute display now normalizes ea_lists.

This is needed to display every attribute only once with overlay
attribute lists recently introduced.
This commit is contained in:
Maria Matejka 2022-06-27 12:44:11 +02:00
parent c431d9c33c
commit d5cac1a4ef

View File

@ -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; i<eal->count; 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]);
}
/**