update rules count

This commit is contained in:
Pascal Fischer 2023-05-30 19:36:09 +02:00
parent 6fd13f563e
commit fe596c38c6

View File

@ -195,13 +195,13 @@ func (w *Worker) generateProperties() properties {
expirationEnabled++ expirationEnabled++
} }
rules = rules + len(account.Rules)
groups = groups + len(account.Groups) groups = groups + len(account.Groups)
routes = routes + len(account.Routes) routes = routes + len(account.Routes)
nameservers = nameservers + len(account.NameServerGroups) nameservers = nameservers + len(account.NameServerGroups)
for _, policy := range account.Policies { for _, policy := range account.Policies {
for _, rule := range policy.Rules { for _, rule := range policy.Rules {
rules++
rulesProtocol[string(rule.Protocol)]++ rulesProtocol[string(rule.Protocol)]++
if rule.Bidirectional { if rule.Bidirectional {
rulesDirection["bidirectional"]++ rulesDirection["bidirectional"]++