Skip to content

Commit

Permalink
ipamclaim: Add key composer
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <[email protected]>
  • Loading branch information
qinqon committed Sep 4, 2024
1 parent fba614f commit 71dfd6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/claims/claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 71dfd6c

Please sign in to comment.