1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

add ability to show interface's ip address with qemu agent. Add checking agent if installed or not

This commit is contained in:
catborise 2019-12-23 15:48:11 +03:00
parent adfdad013c
commit 592112590c
6 changed files with 122 additions and 23 deletions

View file

@ -30,7 +30,7 @@ def interfaces(request, compute_id):
compute.type)
ifaces = conn.get_ifaces()
try:
netdevs = conn.get_net_device()
netdevs = conn.get_net_devices()
except:
netdevs = ['eth0', 'eth1']