0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +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 void
ea_show_list(struct cli *c, ea_list *eal) ea_show_list(struct cli *c, ea_list *eal)
{ {
for( ; eal; eal=eal->next) ea_list *n = ea_normalize(eal, 0);
for(int i=0; i<eal->count; i++) for (int i =0; i < n->count; i++)
ea_show(c, &eal->attrs[i]); ea_show(c, &n->attrs[i]);
} }
/** /**