Răsfoiți Sursa

Include Network information in Prefix Template Issue:#9505

Renato Almeida de Oliveira 3 ani în urmă
părinte
comite
e135f8e74d
1 a modificat fișierele cu 26 adăugiri și 0 ștergeri
  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>