Use event.Route.Link for getting the route metrics
This commit is contained in:
parent
b67be88952
commit
71122836b8
@ -859,7 +859,7 @@ func (n *network) advertise(advertChan <-chan *router.Advert) {
|
||||
address = fmt.Sprintf("%d", hasher.Sum64())
|
||||
}
|
||||
// calculate route metric to advertise
|
||||
metric := n.getRouteMetric(event.Route.Router, event.Route.Gateway, DefaultLink)
|
||||
metric := n.getRouteMetric(event.Route.Router, event.Route.Gateway, event.Route.Link)
|
||||
// NOTE: we override Gateway, Link and Address here
|
||||
route := &pbRtr.Route{
|
||||
Service: event.Route.Service,
|
||||
|
Loading…
x
Reference in New Issue
Block a user