Sorting of list on the Virtual IPs page

  • I often have a relatively large number of VIPs. It would be helpful if the list on the firewall_virtual_ip.php page was sorted by IP address.

    I played around with it a bit and was able to get it somewhat sorted.

    In both firewall_virtual_ip.php and firewall_virtual_ip_edit.php I added the msort line:

    if (!is_array($config['virtualip']['vip'])) {
            $config['virtualip']['vip'] = array();
    $a_vip = &$config['virtualip']['vip'];
    $a_vip = msort($a_vip, "subnet");

    Its not a perfect sort but it makes finding VIPs in there a bit easier.

    Anyone see a problem with this approach?



Log in to reply