summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_rfc2136_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-02-03 12:49:36 -0500
committerjim-p <jimp@pfsense.org>2016-02-03 12:49:36 -0500
commitc7127a130022e92c1f762c35fdb85df723757384 (patch)
tree50f18e138d931d8d388563e18968880bcf023006 /src/usr/local/www/services_rfc2136_edit.php
parentd31445c755811e201114c30afc6233cd733b2502 (diff)
downloadpfsense-c7127a130022e92c1f762c35fdb85df723757384.zip
pfsense-c7127a130022e92c1f762c35fdb85df723757384.tar.gz
Implement Multi-WAN for RFC2136.
A failover gateway group may be selected similar to the other DynDNS styles.
Diffstat (limited to 'src/usr/local/www/services_rfc2136_edit.php')
-rw-r--r--src/usr/local/www/services_rfc2136_edit.php29
1 files changed, 24 insertions, 5 deletions
diff --git a/src/usr/local/www/services_rfc2136_edit.php b/src/usr/local/www/services_rfc2136_edit.php
index 5b74e36..fa054ab 100644
--- a/src/usr/local/www/services_rfc2136_edit.php
+++ b/src/usr/local/www/services_rfc2136_edit.php
@@ -157,6 +157,28 @@ if ($_POST) {
}
}
+function build_if_list() {
+ $list = array();
+
+ $iflist = get_configured_interface_with_descr();
+
+ foreach ($iflist as $if => $ifdesc) {
+ $list[$if] = $ifdesc;
+ }
+
+ unset($iflist);
+
+ $grouplist = return_gateway_groups_array();
+
+ foreach ($grouplist as $name => $group) {
+ $list[$name] = 'GW Group ' . $name;
+ }
+
+ unset($grouplist);
+
+ return($list);
+}
+
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("RFC 2136 Client"), gettext("Edit"));
include("head.inc");
@@ -180,17 +202,14 @@ $section->addInput(new Form_Checkbox(
));
$optionlist = array();
-$iflist = get_configured_interface_with_descr();
-foreach ($iflist as $ifnam => $ifdescr) {
- $optionlist[$ifnam] = $ifdescr;
-}
+$iflist = build_if_list();
$section->addInput(new Form_Select(
'interface',
'Interface',
$pconfig['interface'],
- $optionlist
+ $iflist
));
$section->addInput(new Form_Input(
OpenPOWER on IntegriCloud