diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/quagga_ospfd/quagga_ospfd.inc | 3 | ||||
-rw-r--r-- | config/quagga_ospfd/quagga_ospfd_interfaces.xml | 14 |
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> |