{% extends 'generic/object.html' %} {% load helpers %} {% load netbox_containers_helpers %} {% block extra_controls %} {{ block.super }} {% if perms.netbox_containers.add_networkattachment %}
{% for item in object.add_host %}{{ item }}{% if not forloop.last %}
{% endif %}{% endfor %}
{% else %}
—
{% endif %}
| Type | Network / Options |
|---|---|
| {{ att.get_mode_display }} | {% if att.network %} {{ att.network }} {% else %} {{ att.options|default:"—" }} {% endif %} |
| Name | Status | Image | Infra |
|---|---|---|---|
| {{ c }} | {{ c.get_status_display|default:"—" }} | {% if c.image_tag %} {{ c.image_tag }} {% else %} — {% endif %} | {{ c.is_infra|render_boolean }} |
| Name | Status | Primary IPv4 | Primary IPv6 |
|---|---|---|---|
| {{ d }} | {% with s=d.status %} {% if s == "active" %} {{ d.get_status_display }} {% elif s == "offline" %} {{ d.get_status_display }} {% elif s == "planned" or s == "staged" %} {{ d.get_status_display }} {% elif s == "failed" %} {{ d.get_status_display }} {% else %} {{ d.get_status_display }} {% endif %} {% endwith %} | {% if d.primary_ip4 %} {{ d.primary_ip4 }} {% else %}—{% endif %} | {% if d.primary_ip6 %} {{ d.primary_ip6 }} {% else %}—{% endif %} |
| Name | Status | Primary IPv4 | Primary IPv6 |
|---|---|---|---|
| {{ vm }} | {% with s=vm.status %} {% if s == "active" %} {{ vm.get_status_display }} {% elif s == "offline" %} {{ vm.get_status_display }} {% elif s == "planned" or s == "staged" %} {{ vm.get_status_display }} {% else %} {{ vm.get_status_display }} {% endif %} {% endwith %} | {% if vm.primary_ip4 %} {{ vm.primary_ip4 }} {% else %}—{% endif %} | {% if vm.primary_ip6 %} {{ vm.primary_ip6 }} {% else %}—{% endif %} |