v1.12.9
This commit is contained in:
10
pkg/sdn/defsecpolicies/ids.go
Normal file
10
pkg/sdn/defsecpolicies/ids.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package defsecpolicies
|
||||
|
||||
// IDs gets array of IDs from SecurityPoliciesList struct
|
||||
func (spl SecurityPoliciesList) IDs() []string {
|
||||
res := make([]string, 0, len(spl.Policies))
|
||||
for _, c := range spl.Policies {
|
||||
res = append(res, c.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user