You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
decort-golang-sdk/pkg/sdn/logicalports/ids.go

11 lines
233 B

4 days ago
package logicalports
// IDs gets array of IDs from LogicalPortList struct
func (pl LogicalPortsList) IDs() []string {
res := make([]string, 0, len(pl.Ports))
for _, c := range pl.Ports {
res = append(res, c.ID)
}
return res
}