aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragpecam <agpecam@gmail.com>2015-12-28 16:40:40 +0800
committeragpecam <agpecam@gmail.com>2015-12-28 16:40:40 +0800
commit1ded0fcd90d2645ead79048f44824908fc18cc72 (patch)
tree93e608cca4848f03bcb55b5f22619da2d8cf93a9
parent3bd905893f4eeb15485783e49a8ea2af14b31f4e (diff)
downloadpfsense-packages-1ded0fcd90d2645ead79048f44824908fc18cc72.tar.gz
pfsense-packages-1ded0fcd90d2645ead79048f44824908fc18cc72.tar.bz2
pfsense-packages-1ded0fcd90d2645ead79048f44824908fc18cc72.zip
Allow to select OSPF Network Type in the Quagga OSPFd > Interface Settings
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc3
-rw-r--r--config/quagga_ospfd/quagga_ospfd_interfaces.xml14
2 files changed, 17 insertions, 0 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc
index 27f08143..7c1f5422 100644
--- a/config/quagga_ospfd/quagga_ospfd.inc
+++ b/config/quagga_ospfd/quagga_ospfd.inc
@@ -109,6 +109,9 @@ function quagga_ospfd_install_conf() {
foreach ($config['installedpackages']['quaggaospfdinterfaces']['config'] as $conf) {
$realif = get_real_interface($conf['interface']);
$conffile .= "interface {$realif}\n" ;
+ if (!empty($conf['networktype'])) {
+ $conffile .= " ip ospf network {$conf['networktype']}\n";
+ }
if (!empty($conf['metric'])) {
$conffile .= " ip ospf cost {$conf['metric']}\n";
}
diff --git a/config/quagga_ospfd/quagga_ospfd_interfaces.xml b/config/quagga_ospfd/quagga_ospfd_interfaces.xml
index ef594bfd..d1cc876c 100644
--- a/config/quagga_ospfd/quagga_ospfd_interfaces.xml
+++ b/config/quagga_ospfd/quagga_ospfd_interfaces.xml
@@ -107,6 +107,20 @@
<source_value>value</source_value>
<required/>
</field>
+ <field>
+ <fielddescr>Network Type</fielddescr>
+ <fieldname>networktype</fieldname>
+ <description>Select OSPF Network Type of the interface.</description>
+ <type>select</type>
+ <default_value></default_value>
+ <options>
+ <option><value></value><name>Not specified (default)</name></option>
+ <option><value>broadcast</value><name>Broadcast</name></option>
+ <option><value>non-broadcast</value><name>Non-Broadcast</name></option>
+ <option><value>point-to-multipoint</value><name>Point-to-Multipoint</name></option>
+ <option><value>point-to-point</value><name>Point-to-Point</name></option>
+ </options>
+ </field>
<field>
<fielddescr>Metric</fielddescr>
<fieldname>metric</fieldname>