-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to get (not just wait for) non-local IP addresses
- Loading branch information
Janos Bonic
committed
Jun 13, 2022
1 parent
a09763c
commit f86a4bf
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ovirtclient | ||
|
||
import "net" | ||
|
||
func (m *mockClient) GetVMNonLocalIPAddresses(id VMID, retries ...RetryStrategy) ( | ||
result map[string][]net.IP, | ||
err error, | ||
) { | ||
return waitForIPAddresses(id, nonLocalIPSearchParams, retries, m.logger, m) | ||
} | ||
|
||
func (o *oVirtClient) GetVMNonLocalIPAddresses(id VMID, retries ...RetryStrategy) (map[string][]net.IP, error) { | ||
return waitForIPAddresses(id, nonLocalIPSearchParams, retries, o.logger, o) | ||
} |