Sfoglia il codice sorgente

feat(virtualization): Add Q-in-Q SVLAN to VMinterface template (#19345)

Martin Hauser 9 mesi fa
parent
commit
1141ddb22a
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      netbox/templates/virtualization/vminterface.html

+ 6 - 0
netbox/templates/virtualization/vminterface.html

@@ -55,6 +55,12 @@
           <th scope="row">{% trans "802.1Q Mode" %}</th>
           <th scope="row">{% trans "802.1Q Mode" %}</th>
           <td>{{ object.get_mode_display|placeholder }}</td>
           <td>{{ object.get_mode_display|placeholder }}</td>
         </tr>
         </tr>
+        {% if object.mode == 'q-in-q' %}
+          <tr>
+              <th scope="row">{% trans "Q-in-Q SVLAN" %}</th>
+              <td>{{ object.qinq_svlan|linkify|placeholder }}</td>
+          </tr>
+        {% endif %}
         <tr>
         <tr>
           <th scope="row">{% trans "Tunnel" %}</th>
           <th scope="row">{% trans "Tunnel" %}</th>
           <td>{{ object.tunnel_termination.tunnel|linkify|placeholder }}</td>
           <td>{{ object.tunnel_termination.tunnel|linkify|placeholder }}</td>