From c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 5 Feb 2016 20:08:36 -0600 Subject: Only show VIPs associated with the correct interface. Ticket #5844 --- src/usr/local/www/system_gateway_groups_edit.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/system_gateway_groups_edit.php b/src/usr/local/www/system_gateway_groups_edit.php index 3646cf9..b46775d 100644 --- a/src/usr/local/www/system_gateway_groups_edit.php +++ b/src/usr/local/www/system_gateway_groups_edit.php @@ -190,7 +190,7 @@ function build_gateway_protocol_map (&$a_gateways) { } function build_carp_list() { - global $carplist; + global $carplist, $gateway; $list = array('address' => gettext('Interface Address')); @@ -201,8 +201,9 @@ function build_carp_list() { if (($gateway['ipprotocol'] == "inet6") && (!is_ipaddrv6($address))) { continue; } - - $list[$vip] = "$vip - $address"; + if ($gateway['friendlyiface'] == link_carp_interface_to_parent($vip)) { + $list[$vip] = "$vip - $address"; + } } return($list); @@ -231,7 +232,7 @@ $section->addInput(new Form_Input( )); -$carplist = get_configured_carp_interface_list($interface); +$carplist = get_configured_carp_interface_list(); $row = 0; $numrows = count($a_gateways) - 1; -- cgit v1.1