From: Philippe Guibert Date: Mon, 25 Mar 2019 14:01:56 +0000 (+0100) Subject: zebra: remove duplicated json information X-Git-Tag: 7.1_pulled~143^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F4011%2Fhead;p=mirror%2Ffrr.git zebra: remove duplicated json information the metric information is already present for connected routes. so remove that line. Signed-off-by: Philippe Guibert --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index b0884f22cf..82fbe68bfe 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -425,12 +425,6 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn, if (CHECK_FLAG(re->status, ROUTE_ENTRY_QUEUED)) json_object_boolean_true_add(json_route, "queued"); - if (re->type != ZEBRA_ROUTE_CONNECT) { - json_object_int_add(json_route, "distance", - re->distance); - json_object_int_add(json_route, "metric", re->metric); - } - if (re->tag) json_object_int_add(json_route, "tag", re->tag);