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