mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
add node ipv6 addr to egress route
This commit is contained in:
parent
5ff9289462
commit
7dc4e6c465
2 changed files with 3 additions and 1 deletions
|
@ -173,7 +173,8 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
|
|||
}
|
||||
if peer.IsEgressGateway {
|
||||
hostPeerUpdate.EgressRoutes = append(hostPeerUpdate.EgressRoutes, models.EgressNetworkRoutes{
|
||||
NodeAddr: node.PrimaryAddressIPNet(),
|
||||
NodeAddr: node.Address,
|
||||
NodeAddr6: node.Address6,
|
||||
EgressRanges: peer.EgressGatewayRanges,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ type EgressInfo struct {
|
|||
// EgressNetworkRoutes - struct for egress network routes for adding routes to peer's interface
|
||||
type EgressNetworkRoutes struct {
|
||||
NodeAddr net.IPNet `json:"node_addr"`
|
||||
NodeAddr6 net.IPNet `json:"node_addr6"`
|
||||
EgressRanges []string `json:"egress_ranges"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue