reorganize host interfaces. remove it from instance methods

This commit is contained in:
catborise
2021-02-12 16:05:16 +03:00
parent 59af676f68
commit 2f1b11b3ca
6 changed files with 12 additions and 16 deletions

View File

@@ -29,7 +29,8 @@ def interfaces(request, compute_id):
netdevs = ["eth0", "eth1"]
for iface in ifaces:
ifaces_all.append(conn.get_iface_info(iface))
interf = wvmInterface(compute.hostname, compute.login, compute.password, compute.type, iface)
ifaces_all.append(interf.get_details())
if request.method == "POST":
if "create" in request.POST: