add egress id to model

This commit is contained in:
Abhishek Kondur
2023-02-02 21:25:12 +04:00
parent 04ac036b68
commit b7d3c5b7bd
2 changed files with 4 additions and 2 deletions

View File

@@ -462,6 +462,7 @@ func GetPeerUpdateForHost(host *models.Host) (models.HostPeerUpdate, error) {
}
if node.IsEgressGateway {
hostPeerUpdate.EgressInfo[node.ID.String()] = models.EgressInfo{
EgressID: node.ID.String(),
GwPeers: nodePeerMap,
EgressGWCfg: node.EgressGatewayRequest,
}