Skip to content

Commit

Permalink
initiliase acl cache
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Nov 27, 2024
1 parent dbb44c2 commit 7df8196
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logic/acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ var (
aclCacheMap = make(map[string]models.Acl)
)

func init() {
// load acls into cache
_ = listAcls()
}

// CreateDefaultAclNetworkPolicies - create default acl network policies
func CreateDefaultAclNetworkPolicies(netID models.NetworkID) {
if netID.String() == "" {
Expand Down

0 comments on commit 7df8196

Please sign in to comment.