mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 21:54:54 +08:00
Net 2061 (#3483)
* revert inet gws from acl policies * add egress range with metric for inet gw * link pro inet funcs * fix extclient comms with users * remove TODO comments * add backwards compatibility to egress ranges
This commit is contained in:
parent
0f884d4f36
commit
fcc558e792
1 changed files with 6 additions and 4 deletions
|
@ -84,8 +84,9 @@ func DoesNodeHaveAccessToEgress(node *models.Node, e *schema.Egress, acls []mode
|
|||
func AddEgressInfoToPeerByAccess(node, targetNode *models.Node, eli []schema.Egress, acls []models.Acl, isDefaultPolicyActive bool) {
|
||||
|
||||
req := models.EgressGatewayRequest{
|
||||
NodeID: targetNode.ID.String(),
|
||||
NetID: targetNode.Network,
|
||||
NodeID: targetNode.ID.String(),
|
||||
NetID: targetNode.Network,
|
||||
NatEnabled: "yes",
|
||||
}
|
||||
for _, e := range eli {
|
||||
if !e.Status || e.Network != targetNode.Network {
|
||||
|
@ -138,8 +139,9 @@ func AddEgressInfoToPeerByAccess(node, targetNode *models.Node, eli []schema.Egr
|
|||
func GetNodeEgressInfo(targetNode *models.Node, eli []schema.Egress, acls []models.Acl) {
|
||||
|
||||
req := models.EgressGatewayRequest{
|
||||
NodeID: targetNode.ID.String(),
|
||||
NetID: targetNode.Network,
|
||||
NodeID: targetNode.ID.String(),
|
||||
NetID: targetNode.Network,
|
||||
NatEnabled: "yes",
|
||||
}
|
||||
for _, e := range eli {
|
||||
if !e.Status || e.Network != targetNode.Network {
|
||||
|
|
Loading…
Add table
Reference in a new issue