diff --git a/logic/acls.go b/logic/acls.go index 8863ce86d..6a99fb36c 100644 --- a/logic/acls.go +++ b/logic/acls.go @@ -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() == "" {