diff --git a/pkg/claims/claims.go b/pkg/claims/claims.go index 8c8a5370..699ecbf2 100644 --- a/pkg/claims/claims.go +++ b/pkg/claims/claims.go @@ -41,3 +41,7 @@ func OwnedByVMLabel(vmiName string) client.MatchingLabels { virtv1.VirtualMachineLabel: vmiName, } } + +func ComposeKey(vmName, networkName string) string { + return fmt.Sprintf("%s.%s", vmName, networkName) +}