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

Nest: Improve printing of hostentries with MPLS labels

MPLS labels in hostentry should be printed with 'mpls' keyword instead of
'labels' to be consistent with the rest of the 'show route' output.
This commit is contained in:
Ondrej Zajicek 2024-03-27 23:26:25 +01:00
parent eadebc287b
commit 468f1d6547

View File

@ -1384,7 +1384,7 @@ ea_show_hostentry(const struct adata *ad, byte *buf, uint size)
if (!lc)
return;
s = bsnprintf((buf += s), (size -= s), " labels");
s = bsnprintf((buf += s), (size -= s), " mpls");
for (uint i=0; i < lc; i++)
s = bsnprintf((buf += s), (size -= s), " %u", had->labels[i]);
}