summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-02-24 10:38:00 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2016-02-24 10:49:36 -0600
commit89a7d8d0f835f3d852f5ca18d48995ce4902ac46 (patch)
tree0a2a5c7ff2f8b85e2b2d26586734d6511cbd4172 /src
parent569929efa93f84237c09f0a0a4169fb181e5842b (diff)
downloadpfsense-89a7d8d0f835f3d852f5ca18d48995ce4902ac46.zip
pfsense-89a7d8d0f835f3d852f5ca18d48995ce4902ac46.tar.gz
Make link_interface_to_vips() also return the IP aliases on the specified vhid.
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 84b360e..fe34cf5 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -5022,7 +5022,8 @@ function link_interface_to_vips($int, $action = "", $vhid = '') {
if ($action == "update") {
interfaces_vips_configure($int);
} else {
- if (empty($vhid) || ($vhid == $vip['vhid'])) {
+ if (empty($vhid) || ($vhid == $vip['vhid']) ||
+ substr($vip['interface'], 0, 4) == "_vip") {
$result[] = $vip;
}
}
OpenPOWER on IntegriCloud