mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-12 08:04:25 +08:00
resolve merge conflicts
This commit is contained in:
parent
7c749b68cc
commit
2cc811ebea
1 changed files with 0 additions and 12 deletions
|
@ -1894,18 +1894,6 @@ func GetEgressRulesForNode(targetnode models.Node) (rules map[string]models.AclR
|
|||
}
|
||||
srcTags := convAclTagToValueMap(acl.Src)
|
||||
dstTags := convAclTagToValueMap(acl.Dst)
|
||||
for _, dst := range acl.Dst {
|
||||
if dst.ID == models.EgressID {
|
||||
e := schema.Egress{ID: dst.Value}
|
||||
err := e.Get(db.WithContext(context.TODO()))
|
||||
if err == nil {
|
||||
for nodeID := range e.Nodes {
|
||||
dstTags[nodeID] = struct{}{}
|
||||
}
|
||||
dstTags[e.Range] = struct{}{}
|
||||
}
|
||||
}
|
||||
}
|
||||
_, srcAll := srcTags["*"]
|
||||
_, dstAll := dstTags["*"]
|
||||
aclRule := models.AclRule{
|
||||
|
|
Loading…
Add table
Reference in a new issue