summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-02-16 10:51:42 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2016-02-16 10:51:42 -0600
commit985118b8b15bef26c4eb1a11f25373b3a24d0a97 (patch)
tree7964e75ea2dceac84f6a8cce14e9268be84d28dc /src/usr/local/www/firewall_virtual_ip_edit.php
parente0e28fdf6af0e1e87c930bae0ad0a8d1eb62465e (diff)
downloadpfsense-985118b8b15bef26c4eb1a11f25373b3a24d0a97.zip
pfsense-985118b8b15bef26c4eb1a11f25373b3a24d0a97.tar.gz
Simplify the code with the use the newly introduced function to list CARP addresses.
Diffstat (limited to 'src/usr/local/www/firewall_virtual_ip_edit.php')
-rw-r--r--src/usr/local/www/firewall_virtual_ip_edit.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/usr/local/www/firewall_virtual_ip_edit.php b/src/usr/local/www/firewall_virtual_ip_edit.php
index f75bd33..a666c31 100644
--- a/src/usr/local/www/firewall_virtual_ip_edit.php
+++ b/src/usr/local/www/firewall_virtual_ip_edit.php
@@ -324,19 +324,15 @@ function build_if_list() {
$list = array();
$interfaces = get_configured_interface_with_descr(false, true);
- $carplist = get_configured_vip_list();
+ $carplist = get_configured_vip_list('all', VIP_CARP);
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 {
+ $vip = get_configured_vip($vipname);
$interfaces[$vipname] .= "vhid: {$vip['vhid']}";
}
$interfaces[$vipname] .= ")";
OpenPOWER on IntegriCloud