From: Philippe Guibert Date: Mon, 25 Mar 2019 14:01:56 +0000 (+0100) Subject: zebra: remove duplicated json information X-Git-Tag: frr-7.1~155^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=41533022a20bfea03fc5b8ce9456856a455b8d41;p=mirror_frr.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 b0884f22c..82fbe68bf 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);