From 1ded0fcd90d2645ead79048f44824908fc18cc72 Mon Sep 17 00:00:00 2001 From: agpecam Date: Mon, 28 Dec 2015 16:40:40 +0800 Subject: Allow to select OSPF Network Type in the Quagga OSPFd > Interface Settings --- config/quagga_ospfd/quagga_ospfd.inc | 3 +++ config/quagga_ospfd/quagga_ospfd_interfaces.xml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'config') 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 @@ value + + Network Type + networktype + Select OSPF Network Type of the interface. + select + + + + + + + + + Metric metric -- cgit v1.2.3