Set Route.Network to "network" and Router.Gateway to network.Address
This commit is contained in:
parent
8c3eec9f2a
commit
9448d7c164
@ -226,8 +226,8 @@ func (n *network) advertise(client transport.Client, advertChan <-chan *router.A
|
|||||||
route := &pb.Route{
|
route := &pb.Route{
|
||||||
Service: event.Route.Service,
|
Service: event.Route.Service,
|
||||||
Address: event.Route.Address,
|
Address: event.Route.Address,
|
||||||
Gateway: event.Route.Gateway,
|
Gateway: n.options.Address,
|
||||||
Network: event.Route.Network,
|
Network: "network",
|
||||||
Link: event.Route.Link,
|
Link: event.Route.Link,
|
||||||
Metric: int64(event.Route.Metric),
|
Metric: int64(event.Route.Metric),
|
||||||
}
|
}
|
||||||
@ -257,6 +257,7 @@ func (n *network) advertise(client transport.Client, advertChan <-chan *router.A
|
|||||||
},
|
},
|
||||||
Body: body,
|
Body: body,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := client.Send(&m); err != nil {
|
if err := client.Send(&m); err != nil {
|
||||||
log.Debugf("Network failed to send advert %s: %v", pbAdvert.Id, err)
|
log.Debugf("Network failed to send advert %s: %v", pbAdvert.Id, err)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user