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