diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-03-25 15:01:56 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-03-25 15:02:52 +0100 |
commit | 41533022a20bfea03fc5b8ce9456856a455b8d41 (patch) | |
tree | 7533d56352cb827c94dc873b47367c30b45026e8 /zebra/zebra_vty.c | |
parent | Merge pull request #3772 from pguibert6WIND/vrf_backend_unknown (diff) | |
download | frr-41533022a20bfea03fc5b8ce9456856a455b8d41.tar.xz frr-41533022a20bfea03fc5b8ce9456856a455b8d41.zip |
zebra: remove duplicated json information
the metric information is already present for connected routes. so
remove that line.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r-- | zebra/zebra_vty.c | 6 |
1 files changed, 0 insertions, 6 deletions
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); |