From 41533022a20bfea03fc5b8ce9456856a455b8d41 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 25 Mar 2019 15:01:56 +0100 Subject: [PATCH] zebra: remove duplicated json information the metric information is already present for connected routes. so remove that line. Signed-off-by: Philippe Guibert --- zebra/zebra_vty.c | 6 ------ 1 file changed, 6 deletions(-) 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); -- 2.39.5