{% extends "base.html" %} {% load i18n %} {% load bootstrap_icons %} {% block title %}{% trans "Interface" %} - {{ iface }}{% endblock %} {% block page_heading %}{{ compute.name }} - {% trans "Interface" %}: {{ iface }}{% endblock page_heading %} {% block page_heading_extra %} {% if changeable and info %} {# the interface's own actions where the host's libvirt can change interfaces: start or stop, and delete a stopped one #}
{% csrf_token %} {% if state %} {% else %} {% endif %}
{% endif %} {% endblock page_heading_extra %} {% block content %} {% include "computes/host_nav.html" with section="interfaces" detail=True %} {% if changeable is False %}{% include 'interfaces_unchangeable.html' %}{% endif %} {% if info %}
{% trans "Interface" %}
{% if changeable %}
{% for family, addressing in info.addressing %}
{{ family }}
  • {% trans "Configured" %} {% if addressing.method == "dhcp" %}DHCP{% elif addressing.method == "autoconf" %}{% trans "Automatic (SLAAC)" %}{% elif addressing.method == "static" %}{% trans "Static" %}{% else %}{% trans "None" %}{% endif %}
  • {% for address in addressing.addresses %}
  • {% trans "Address" %}{{ address }}
  • {% endfor %}
{% endfor %}
{% endif %} {% if info.type == "bridge" or info.type == "bond" or info.type == "vlan" %}
{% if info.type == "vlan" %}{% trans "Device" %}{% else %}{% trans "Members" %}{% endif %}
{% if info.members %}
{% for member in info.members %} {% endfor %}
{% trans "Name" %} {% trans "Type" %} {% trans "MAC" %} {% trans "Link" %} {% trans "Speed" %}
{{ member.name }} {{ member.type|default:"–" }} {{ member.mac|default:"–" }} {% include "link_badge.html" with link=member.link %} {% if member.speed %}{{ member.speed }} Mb/s{% else %}–{% endif %}
{% else %}
{% trans "libvirt reports no members." %}
{% endif %}
{% endif %} {% if info.type == "bridge" %}
{% trans "Connected VM interfaces" %}
{% if vms %}
{% for vm in vms %} {% endfor %}
{% trans "VM" %} {% trans "Tap" %} {% trans "VM's MAC" %}
{% if vm.id %}{{ vm.vm }}{% else %}{{ vm.vm }}{% endif %} {{ vm.tap|default:"–" }} {{ vm.mac|default:"–" }}
{% else %}
{% trans "No running VM is on this bridge." %}
{% endif %}
{% endif %} {% endif %} {% endblock %}