From 8b9fe4e887126c5d9c8568e383d3051fc4dcaab9 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 10 Jan 2020 15:28:09 +0300 Subject: [PATCH] rearrange instance network to show ipv4 and ipv6 address. Add capability to show all ip address not one of them. Add ipv4 address to instance summary --- instances/templates/instance.html | 91 ++++++++++++++++++++----------- vrtManager/instance.py | 16 +++--- 2 files changed, 66 insertions(+), 41 deletions(-) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index ae35f55..764ef73 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -34,6 +34,11 @@ {% for disk in disks %} {{ disk.size|filesizeformat }} {% trans "Disk" %} | {% endfor %} + {% for net in networks %} + {% for ipv4 in net.ipv4|default:"-" %} + {{ ipv4 }} | + {% endfor %} + {% endfor %}