horizon/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_ips.html
Akihiro Motoki fe6e395a62 Show ports without IP in instance table and detail
Previously instance ports without IP address were not shown
because api.neutron.servers_update_addresses() ignored ports
without IP address.

This commit changes servers_update_addresses() to include
a special symbol (None) representing "No IP address"
in "addresses" attribute in "server" object.

"(No IP address)" will be shown for ports without IP addresses now.

Closes-Bug: #1804016
Change-Id: I46699731ab515667b8cdf97ef68bdb8cbfe0b563
2018-11-29 23:34:23 +09:00

14 lines
316 B
HTML

{% load i18n %}
<ul class="list-unstyled">
{% for ip_group, ips in ip_groups.items %}
{% if ip_groups.keys|length > 1 %}
<li><b>{{ ip_group }}</b>
{% endif %}
{% if ips|length > 0 %}
{{ ips|join:", " }}</li>
{% else %}
{% trans "(No IP address)" %}
{% endif %}
{% endfor %}
</ul>