summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-10 15:00:30 +0100
committerErmal <eri@pfsense.org>2014-11-10 15:00:30 +0100
commit5063f1df931b2887e2da2560c73fef954656e4e8 (patch)
tree6dc55e05e7936c41238a135461fdeb4dd53bc410 /etc/phpshellsessions
parent9c97df267fd4f3c6c638466a54482e3d2c1b2986 (diff)
downloadpfsense-5063f1df931b2887e2da2560c73fef954656e4e8.zip
pfsense-5063f1df931b2887e2da2560c73fef954656e4e8.tar.gz
Ticket #3967. Allow to have carp as parent of ipaliases - continued
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/enablecarp10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/phpshellsessions/enablecarp b/etc/phpshellsessions/enablecarp
index b1c4a43..c02a606 100644
--- a/etc/phpshellsessions/enablecarp
+++ b/etc/phpshellsessions/enablecarp
@@ -7,9 +7,13 @@ if(is_array($config['virtualip']['vip'])) {
$viparr = &$config['virtualip']['vip'];
foreach ($viparr as $vip) {
switch ($vip['mode']) {
- case "carp":
- interface_carp_configure($vip);
- sleep(1);
+ case "carp":
+ interface_carp_configure($vip);
+ sleep(1);
+ break;
+ case "ipalias":
+ if (strpos($vip['interface'], '_vip'))
+ interface_ipalias_configure($vip);
break;
}
}
OpenPOWER on IntegriCloud