This script will list all VMs and the network interfaces attached to that VM.
Sample output:
smb:
vnet1
system_prod:
vnet8
system_test:
vnet9
pabx:
vnet2
vnet3
management:
vnet4
docker:
vnet5
vnet6
vnet7
Added a script to list the network tree including the VM that is attached to the interface(if any):
lo
br0
bond0.20@bond0
vnet11 - VM: samba
vnet16 - VM: docker
vnet18 - VM: system_prod
br1
bond0
eno1
eno2
eno3
vnet6 - VM: unifi
vnet12 - VM: system_test
vnet15 - VM: docker
br2
bond0.30@bond0
vnet4 - VM: pabx
vnet17 - VM: docker
br3
eno4
vnet5 - VM: pabx