This commit is contained in:
2024-03-06 17:02:50 +03:00
parent 83bf1fb1fa
commit de9cca4053
49 changed files with 1962 additions and 720 deletions

View File

@@ -53,3 +53,12 @@ func (lpfw ListPFW) IDs() []uint64 {
}
return res
}
// IDs gets array of ComputeIDs from ListAffinityGroupItems struct
func (lag ListAffinityGroupItems) IDs() []uint64 {
res := make([]uint64, 0, len(lag))
for _, ag := range lag {
res = append(res, ag.ID)
}
return res
}