summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-09-01 11:12:31 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-09-01 19:42:02 +0900
commit459e5957f2450f6833f1314d782b144ad6289aca (patch)
treea0d01fa4365d4126526cd0ab31dc82c703813b4c
parentcc51c48a4934bde8f5a5555632633c3c8486b797 (diff)
zebra: show metric and distance
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
-rw-r--r--server/zclient.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/zclient.go b/server/zclient.go
index ab163b37..48485242 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -108,6 +108,8 @@ func createPathFromIPRouteMessage(m *zebra.Message, peerInfo *table.PeerInfo) *t
"Prefix": body.Prefix,
"PrefixLength": body.PrefixLength,
"Nexthop": body.Nexthops,
+ "Metric": body.Metric,
+ "Distance": body.Distance,
"api": header.Command.String(),
}).Debugf("create path from ip route message.")