summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-10 19:13:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-10 19:13:00 +0000
commit8e21cbb8b243f865f0710dae230141a73139a92b (patch)
tree1ff979f0237de5bc0fe40c8d194c2e749a90dcd6 /usr
parent010ae92efb3a3c6c7009eb6832f889458af3ce03 (diff)
downloadpfsense-8e21cbb8b243f865f0710dae230141a73139a92b.zip
pfsense-8e21cbb8b243f865f0710dae230141a73139a92b.tar.gz
If OpenBGPD is installed, allow the selection of BGP as our
default gateway.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_gateways_edit.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index a8b85e1..5355bcd 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -171,7 +171,15 @@ include("head.inc");
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
- <?php endforeach; ?>
+ <?php
+ endforeach;
+ if (is_package_installed("openbgpd") == 1) {
+ echo "<option value=\"bgpd\"";
+ if($pconfig['interface'] == "bgpd")
+ echo " selected";
+ echo ">Use BGPD</option>";
+ }
+ ?>
</select> <br>
<span class="vexpl">Choose which interface this gateway applies to.</span></td>
</tr>
OpenPOWER on IntegriCloud