Skip to content

Commit

Permalink
Merge pull request #3313 from gravitl/NET-1902
Browse files Browse the repository at this point in the history
don't override acl rules for multi-net host
  • Loading branch information
abhishek9686 authored Feb 4, 2025
2 parents 68b257b + 01e7ccf commit 7b04861
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion logic/peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,14 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N

} else {
hostPeerUpdate.FwUpdate.AllowAll = false
hostPeerUpdate.FwUpdate.AclRules = GetAclRulesForNode(&node)
rules := GetAclRulesForNode(&node)
if len(hostPeerUpdate.FwUpdate.AclRules) == 0 {
hostPeerUpdate.FwUpdate.AclRules = rules
} else {
for aclID, rule := range rules {
hostPeerUpdate.FwUpdate.AclRules[aclID] = rule
}
}
}

currentPeers := GetNetworkNodesMemory(allNodes, node.Network)
Expand Down

0 comments on commit 7b04861

Please sign in to comment.