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 the ability to get the interface addresses of a Domain (VM) #124

Open
jessecooper opened this issue May 24, 2022 · 0 comments
Open

Add the ability to get the interface addresses of a Domain (VM) #124

jessecooper opened this issue May 24, 2022 · 0 comments

Comments

@jessecooper
Copy link

jessecooper commented May 24, 2022

SUMMARY

I do not see this implemented, documented or discussed anywhere so, I am created this feature request with the good intention of implementing it if the feature is not already available.

I would like to be able to get the Interfaces Addresses of a Domain (VM).

virsh command:
virsh domifaddr --source <agent|arp|lease> <vm_name>

ISSUE TYPE
  • The idea of this feature would comes from wanting to get the IP address of an interface of a VM that has just been deployed to continue the VMs OS setup.
COMPONENT NAME

It seems the best place for this feature would be in the virt module. The VM_COMMAND could be get_ifaddresses.

ADDITIONAL INFORMATION

This module would be used to get the Domain (VM) interface addresses.
Example code using libvirt-python

- name: vm info
  community.libvirt.virt:
    command: get_ifaddresses
    source: <agent|arp|lease>
    domain: <name_of_vm>
  register: ifaddresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant