echo gettext("Actions"); ?> </th> </tr> </thead> <tbody> <?php $interfaces = get_configured_interface_with_descr(false, true); $viplist = get_configured_vip_list(); foreach ($viplist as $vipname => $address) { $interfaces[$vipname] = $address; $interfaces[$vipname] .= " ("; if (get_vip_descr($address)) { $interfaces[$vipname] .= get_vip_descr($address); } else { $vip = get_configured_vip($vipname); $interfaces[$vipname] .= "vhid: {$vip['vhid']}"; } $interfaces[$vipname] .= ")"; } $interfaces['lo0'] = "Localhost"; $i = 0; foreach ($a_vip as $vipent) { if ($vipent['subnet'] != "" or $vipent['range'] != "" or $vipent['subnet_bits'] != "" or isset($vipent['range']['from']) && $vipent['range']['from'] != "") { ?> <tr> <td> <?php if ($vipent['type'] == "single" || $vipent['type'] == "network") { if ($vipent['subnet_bits']) { print "{$vipent['subnet']}/{$vipent['subnet_bits']}";
function build_if_list() { $list = array(); $interfaces = get_configured_interface_with_descr(false, true); $carplist = get_configured_vip_list(); foreach ($carplist as $vipname => $address) { $vip = get_configured_vip($vipname); if ($vip['mode'] != 'carp') { continue; } $interfaces[$vipname] = $address; $interfaces[$vipname] .= " ("; if (get_vip_descr($address)) { $interfaces[$vipname] .= get_vip_descr($address); } else { $interfaces[$vipname] .= "vhid: {$vip['vhid']}"; } $interfaces[$vipname] .= ")"; } $interfaces['lo0'] = 'Localhost'; return $interfaces; }