Skip to content

Commit

Permalink
Merge branch 'develop' into NET-1778
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma authored Nov 27, 2024
2 parents 51aeb35 + 343f5ee commit edfacc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions logic/acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func CreateDefaultAclNetworkPolicies(netID models.NetworkID) {
if netID.String() == "" {
return
}
_, _ = ListAcls(netID)
if !IsAclExists(fmt.Sprintf("%s.%s", netID, "all-nodes")) {
defaultDeviceAcl := models.Acl{
ID: fmt.Sprintf("%s.%s", netID, "all-nodes"),
Expand Down
2 changes: 2 additions & 0 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (

// Run - runs all migrations
func Run() {
_, _ = logic.GetAllNodes()
_, _ = logic.GetAllHosts()
updateEnrollmentKeys()
assignSuperAdmin()
createDefaultTagsAndPolicies()
Expand Down
2 changes: 1 addition & 1 deletion netclient/ncutils/netclientutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// DEFAULT_GC_PERCENT - garbage collection percent
const DEFAULT_GC_PERCENT = 10
const DEFAULT_GC_PERCENT = 100

// == OS PATH FUNCTIONS ==

Expand Down

0 comments on commit edfacc1

Please sign in to comment.