<commit_before>{% load i18n sizeformat %}
{% load url from future %}

<h3>{% trans "Port Overview" %}</h3>

<div class="info row detail">
  <h4>{% trans "Port" %}</h4>
  <hr class="header_rule">
  <dl>
    <dt>{% trans "Name" %}</dt>
    <dd>{{ port.name|default:_("None") }}</dd>
    <dt>{% trans "ID" %}</dt>
    <dd>{{ port.id|default:_("None") }}</dd>
    {% url 'horizon:project:networks:detail' port.network_id as network_url %}
    <dt>{% trans "Network ID" %}</dt>
    <dd><a href="{{ network_url }}">{{ port.network_id|default:_("None") }}</a></dd>
    <dt>{% trans "Project ID" %}</dt>
    <dd>{{ port.tenant_id|default:"-" }}</dd>
    <dt>{% trans "Fixed IP" %}</dt>
    <dd>
      {% if port.fixed_ips.items|length > 1 %}
      {% for ip in port.fixed_ips %}
      <b>{% trans "IP address:" %}</b> {{ ip.ip_address }},
      <b>{% trans "Subnet ID" %}</b> {{ ip.subnet_id }}<br>
      {% endfor %}
      {% else %}
      "None"
      {% endif %}
    </dd>
    <dt>{% trans "Mac Address" %}</dt>
    <dd>{{ port.mac_address|default:_("None") }}</dd>
    <dt>{% trans "Status" %}</dt>
    <dd>{{ port.status|default:_("None") }}</dd>
    <dt>{% trans "Admin State" %}</dt>
    <dd>{{ port.admin_state|default:_("None") }}</dd>
    {% if port.mac_state %}
    <dt>{% trans "MAC Learning State" %}</dt>
    <dd>{{ port.mac_state }}</dd>
    {% endif %}
    <dt>{% trans "Attached Device" %}</dt>
    {% if port.device_id|length > 1 or port.device_owner %}
    <dd><b>{% trans "Device Owner" %}</b>: {{ port.device_owner|default:_("None") }}</dd>
    <dd><b>{% trans "Device ID" %}</b>: {{ port.device_id|default:"-" }}</dd>
    {% else %}
    <dd>No attached device</dd>
    {% endif %}<commit_msg>Port details template missing some translation.<commit_after>{% load i18n sizeformat %}
{% load url from future %}

<h3>{% trans "Port Overview" %}</h3>

<div class="info row detail">
  <h4>{% trans "Port" %}</h4>
  <hr class="header_rule">
  <dl>
    <dt>{% trans "Name" %}</dt>
    <dd>{{ port.name|default:_("None") }}</dd>
    <dt>{% trans "ID" %}</dt>
    <dd>{{ port.id|default:_("None") }}</dd>
    {% url 'horizon:project:networks:detail' port.network_id as network_url %}
    <dt>{% trans "Network ID" %}</dt>
    <dd><a href="{{ network_url }}">{{ port.network_id|default:_("None") }}</a></dd>
    <dt>{% trans "Project ID" %}</dt>
    <dd>{{ port.tenant_id|default:"-" }}</dd>
    <dt>{% trans "Fixed IP" %}</dt>
    <dd>
      {% if port.fixed_ips.items|length > 1 %}
        {% for ip in port.fixed_ips %}
          <b>{% trans "IP address:" %}</b> {{ ip.ip_address }},
          <b>{% trans "Subnet ID" %}</b> {{ ip.subnet_id }}<br>
        {% endfor %}
      {% else %}
        {% trans "None" %}
      {% endif %}
    </dd>
    <dt>{% trans "Mac Address" %}</dt>
    <dd>{{ port.mac_address|default:_("None") }}</dd>
    <dt>{% trans "Status" %}</dt>
    <dd>{{ port.status|default:_("None") }}</dd>
    <dt>{% trans "Admin State" %}</dt>
    <dd>{{ port.admin_state|default:_("None") }}</dd>
    {% if port.mac_state %}
      <dt>{% trans "MAC Learning State" %}</dt>
      <dd>{{ port.mac_state }}</dd>
    {% endif %}
    <dt>{% trans "Attached Device" %}</dt>
    {% if port.device_id|length > 1 or port.device_owner %}
      <dd><b>{% trans "Device Owner" %}</b>: {{ port.device_owner|default:_("None") }}</dd>
      <dd><b>{% trans "Device ID" %}</b>: {{ port.device_id|default:"-" }}</dd>
    {% else %}
      <dd>{% trans "No attached device" %}</dd>
    {% endif %}
{'fraction_non_alphanumeric': 0.26115560640732266, 'fraction_numerical': 0.004576659038901602, 'mean_word_length': 3.0805134189031507, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '835501', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1297, 'n_words': 321}