diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-24 10:38:00 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-24 10:49:36 -0600 |
commit | 89a7d8d0f835f3d852f5ca18d48995ce4902ac46 (patch) | |
tree | 0a2a5c7ff2f8b85e2b2d26586734d6511cbd4172 /src/etc/inc/interfaces.inc | |
parent | 569929efa93f84237c09f0a0a4169fb181e5842b (diff) | |
download | pfsense-89a7d8d0f835f3d852f5ca18d48995ce4902ac46.zip pfsense-89a7d8d0f835f3d852f5ca18d48995ce4902ac46.tar.gz |
Make link_interface_to_vips() also return the IP aliases on the specified vhid.
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 3 |
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; } } |