summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_router_advertisements.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-03-29 23:39:36 -0500
committerChris Buechler <cmb@pfsense.org>2016-03-29 23:39:36 -0500
commitc0509674160f47e3a7b041d2b20c80ebe12981d2 (patch)
tree8b45bcfa436c3eaff8cfb0ad321d4c10b0ed8bc4 /src/usr/local/www/services_router_advertisements.php
parentbdd284c3aac83bf661aa66a6e80defacd6883fe8 (diff)
downloadpfsense-c0509674160f47e3a7b041d2b20c80ebe12981d2.zip
pfsense-c0509674160f47e3a7b041d2b20c80ebe12981d2.tar.gz
Bring back rainterface, add config upgrade to convert to new _vip format. Ticket #6043
Diffstat (limited to 'src/usr/local/www/services_router_advertisements.php')
-rw-r--r--src/usr/local/www/services_router_advertisements.php32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/usr/local/www/services_router_advertisements.php b/src/usr/local/www/services_router_advertisements.php
index 59de63b..6852d13 100644
--- a/src/usr/local/www/services_router_advertisements.php
+++ b/src/usr/local/www/services_router_advertisements.php
@@ -120,6 +120,7 @@ if (is_array($config['dhcpdv6'][$if])) {
/* RA specific */
$pconfig['ramode'] = $config['dhcpdv6'][$if]['ramode'];
$pconfig['rapriority'] = $config['dhcpdv6'][$if]['rapriority'];
+ $pconfig['rainterface'] = $config['dhcpdv6'][$if]['rainterface'];
if ($pconfig['rapriority'] == "") {
$pconfig['rapriority'] = "medium";
}
@@ -209,6 +210,7 @@ if ($_POST) {
$config['dhcpdv6'][$if]['ramode'] = $_POST['ramode'];
$config['dhcpdv6'][$if]['rapriority'] = $_POST['rapriority'];
+ $config['dhcpdv6'][$if]['rainterface'] = $_POST['rainterface'];
$config['dhcpdv6'][$if]['ravalidlifetime'] = $_POST['ravalidlifetime'];
$config['dhcpdv6'][$if]['rapreferredlifetime'] = $_POST['rapreferredlifetime'];
@@ -262,7 +264,7 @@ $tabscounter = 0;
$i = 0;
foreach ($iflist as $ifent => $ifname) {
$oc = $config['interfaces'][$ifent];
- // We need interfaces configured with a static IPv6 address or track6 for PD.
+ // We need interfaces configured with a static IPv6 address or track6 for PD.
if (!is_ipaddrv6($oc['ipaddrv6']) && $oc['ipaddrv6'] != "track6") {
continue;
}
@@ -312,6 +314,34 @@ $section->addInput(new Form_Select(
$priority_modes
))->setHelp('Select the Priority for the Router Advertisement (RA) Daemon.');
+$carplist = get_configured_vip_list("inet6", VIP_CARP);
+
+$carplistif = array();
+
+if(count($carplist) > 0) {
+ foreach($carplist as $ifname => $vip) {
+ if (get_configured_vip_interface($ifname) == $if) {
+ $carplistif[$ifname] = $vip;
+ }
+ }
+}
+
+if (count($carplistif) > 0) {
+ $iflist = array();
+
+ $iflist['interface'] = strtoupper($if);
+ foreach($carplistif as $ifname => $vip) {
+ $iflist[$ifname] = get_vip_descr($vip) . " - " . $vip;
+ }
+
+ $section->addInput(new Form_Select(
+ 'rainterface',
+ 'RA Interface',
+ $pconfig['rainterface'],
+ $iflist
+ ))->setHelp('Select the Interface for the Router Advertisement (RA) Daemon.');
+}
+
$section->addInput(new Form_Input(
'ravalidlifetime',
'Default valid lifetime',
OpenPOWER on IntegriCloud