Change router.Route metric to int64. Set the route metric properly

This commit is contained in:
Milos Gajdos
2019-10-23 12:53:36 +01:00
parent 326156671d
commit 1ff65e140a
8 changed files with 67 additions and 33 deletions

View File

@@ -61,7 +61,7 @@ func (w *watcher) watch(stream pb.Router_WatchService) error {
Gateway: resp.Route.Gateway,
Network: resp.Route.Network,
Link: resp.Route.Link,
Metric: int(resp.Route.Metric),
Metric: resp.Route.Metric,
}
event := &router.Event{