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

How to get the vm nic name,example eth0,or vm-nic-1 and so on #704

Open
Aixleft723 opened this issue May 20, 2022 · 1 comment
Open

How to get the vm nic name,example eth0,or vm-nic-1 and so on #704

Aixleft723 opened this issue May 20, 2022 · 1 comment
Labels

Comments

@Aixleft723
Copy link

Describe the bug

I can not get the nic name

Reproduction steps

1. # Loop through all the VMs
    for child in children:
        # get all the vm name
        vmName = child.summary.config.name
        if vmName != "lanjing":
            continue
        for dev in child.config.hardware.device:
2.
3.
...

Expected behavior

Get the vm nic name

Additional context

No response

@Aixleft723 Aixleft723 added the bug label May 20, 2022
@amdei
Copy link

amdei commented Sep 25, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants