r1273 + count every record possible, when computing IPv4 range usage
[racktables] / inc / interface.php
index b05269605a1dd428bcc3e405df4adfaf2eaeb502..c0c29d73cbfd0aa74dee45989ce2f96553c63714 100644 (file)
@@ -1639,10 +1639,7 @@ function renderAddNewRange ()
        foreach ($addrspaceList as $iprange)
        {
                $range = getIPRange($iprange['id']);
-               $usedips = 0;
-               foreach ($range['addrlist'] as $addr)
-                       if (count($addr['references'])>0 || $addr['reserved']=='yes')
-                               $usedips++;
+               $usedips = count ($range['addrlist']);
                echo "<tr>";
                if ($usedips == 0)
                {