Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to get all the IPs of a VM #400

Merged
merged 3 commits into from
Dec 26, 2016

Conversation

mykaul
Copy link

@mykaul mykaul commented Dec 21, 2016

Now that we've started using multiple networks, it's nice to be able to get all IPs of a VM.
Apparently, there's a strange scheme for the names:
The first is , the others are .

We should probably change it, but regardless, for now this allows getting all IPs.
Something like:
lago-basic-suite-master-engine: ips: [u'192.168.200.3', u'192.168.202.3']

And it'll be used in ovirt-system-tests later, something like:
def _get_host_all_ips(prefix, host_name):
return prefix.virt_env.get_vm(host_name).all_ips()

Now that we've started using multiple networks, it's nice to be able to get all IPs of a VM.
Apparently, there's a strange scheme for the names:
The first is <name>, the others are <name-ethX> .

We should probably change it, but regardless, for now this allows getting all IPs.
@mykaul
Copy link
Author

mykaul commented Dec 25, 2016

ci test please

@mykaul
Copy link
Author

mykaul commented Dec 26, 2016

@nvgoldin - can it get into 0.30, or should we wait for 0.31?

@nvgoldin
Copy link
Contributor

@mykaul - no problem, I'll try merging it after #385.

@nvgoldin
Copy link
Contributor

@mykaul - can you rebase?

@nvgoldin
Copy link
Contributor

ci merge please

@nvgoldin nvgoldin modified the milestone: 0.30 Dec 26, 2016
@lago-bot lago-bot merged commit bfd635d into lago-project:master Dec 26, 2016
@mykaul mykaul deleted the multiple_ips branch December 27, 2016 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants