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