mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
NM-103: fix all rsrcs comms (#3631)
* fix all rsrcs comms * fix static checks * fix egress acls on CE * check for all resources access on a node * simplify egress acl rules * merged ce and pro acl rule func * fix uni direction acl rule for static nodes * allow relayed nodes traffic
This commit is contained in:
@@ -672,6 +672,16 @@ func createDefaultTagsAndPolicies() {
|
||||
logic.DeleteAcl(models.Acl{ID: fmt.Sprintf("%s.%s", network.NetID, "all-remote-access-gws")})
|
||||
}
|
||||
logic.MigrateAclPolicies()
|
||||
if !servercfg.IsPro {
|
||||
nodes, _ := logic.GetAllNodes()
|
||||
for _, node := range nodes {
|
||||
if node.IsGw {
|
||||
node.Tags = make(map[models.TagID]struct{})
|
||||
node.Tags[models.TagID(fmt.Sprintf("%s.%s", node.Network, models.GwTagName))] = struct{}{}
|
||||
logic.UpsertNode(&node)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func migrateToEgressV1() {
|
||||
|
||||
Reference in New Issue
Block a user