diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-10-06 03:38:19 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-10-06 03:55:58 +0200 |
commit | 8526b84200a7e733fa507e2805cae4755423d09e (patch) | |
tree | b989162af36e086f498f00a9dc181ea40feddd02 /zebra/zebra_vty.c | |
parent | *: use argv[]->text instead of argv[]->arg when appropriate (diff) | |
download | frr-8526b84200a7e733fa507e2805cae4755423d09e.tar.xz frr-8526b84200a7e733fa507e2805cae4755423d09e.zip |
zebra: fix display of negative route metrics and tags
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 04cd17ced..d86cc88b4 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -455,7 +455,7 @@ static void vty_show_ip_route_detail(struct vty *vty, struct route_node *rn, vty_out(vty, ", distance %u, metric %u", re->distance, re->metric); if (re->tag) - vty_out(vty, ", tag %d", re->tag); + vty_out(vty, ", tag %u", re->tag); if (re->mtu) vty_out(vty, ", mtu %u", re->mtu); if (re->vrf_id != VRF_DEFAULT) { @@ -829,7 +829,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn, /* Distance and metric display. */ if (re->type != ZEBRA_ROUTE_CONNECT) - len += vty_out(vty, " [%d/%d]", re->distance, + len += vty_out(vty, " [%u/%u]", re->distance, re->metric); } else { vty_out(vty, " %c%*c", |