Explorar o código

Include Network information in Prefix Template Issue:#9505

Renato Almeida de Oliveira %!s(int64=4) %!d(string=hai) anos
pai
achega
e135f8e74d
Modificáronse 1 ficheiros con 26 adicións e 0 borrados
  1. 26 0
      netbox/templates/ipam/prefix.html

+ 26 - 0
netbox/templates/ipam/prefix.html

@@ -143,6 +143,32 @@
               {% endwith %}
             </td>
           </tr>
+	  {% if object.prefix.version == 4 %}
+	  <tr>
+	    <td>
+		    Network Mask
+            </td>
+	    <td>
+		    {{ object.prefix.netmask }}		
+            </td>
+	  </tr>
+	  <tr>
+	    <td>
+		    Broadcast Address
+            </td>
+	    <td>
+		    {{ object.prefix.broadcast }}		
+            </td>
+	  </tr>
+	  <tr>
+	    <td>
+		    Wildcard Mask
+            </td>
+	    <td>
+		    {{ object.prefix.hostmask }}		
+            </td>
+	  </tr>
+	  {% endif %}
         </table>
       </div>
     </div>