From bdd6f728399a7601eaeff7165645fb0c597d309d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 27 Jun 2022 13:39:28 +0200 Subject: Moved nexthop + hostentry display to other eattrs --- proto/static/static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/static') diff --git a/proto/static/static.c b/proto/static/static.c index d1d5b92b..f0a514f7 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -695,7 +695,7 @@ static_get_route_info(rte *rte, byte *buf) { eattr *a = ea_find(rte->attrs, &ea_gen_igp_metric); u32 pref = rt_get_preference(rte); - if (a) + if (a && (a->u.data < IGP_METRIC_UNKNOWN)) buf += bsprintf(buf, " (%d/%u)", pref, a->u.data); else buf += bsprintf(buf, " (%d)", pref); -- cgit v1.2.3