r1273 + count every record possible, when computing IPv4 range usage
[racktables] / inc / interface.php
index b052696..c0c29d7 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)
                {