aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-04-04 11:56:31 -0400
committerjim-p <jimp@pfsense.org>2012-04-04 11:58:41 -0400
commit3adf39831285c21e65dc16be241202d127969d5e (patch)
treebbc7fc999d88a6f84373776257e1438cdd8507ba /config
parent14c7eb8ab7fff868e2910e7112793f5d64bf6575 (diff)
downloadpfsense-packages-3adf39831285c21e65dc16be241202d127969d5e.tar.gz
pfsense-packages-3adf39831285c21e65dc16be241202d127969d5e.tar.bz2
pfsense-packages-3adf39831285c21e65dc16be241202d127969d5e.zip
Don't print an empty network when generating an ospf config for quagga.
Diffstat (limited to 'config')
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc
index 2a068022..8f1fd5a4 100644
--- a/config/quagga_ospfd/quagga_ospfd.inc
+++ b/config/quagga_ospfd/quagga_ospfd.inc
@@ -159,7 +159,8 @@ function quagga_ospfd_install_conf() {
if (is_array($interface_networks))
foreach ($interface_networks as $ifn)
- $conffile .= " network {$ifn} area {$ospfd_conf['area']}\n";
+ if (is_subnet($ifn))
+ $conffile .= " network {$ifn} area {$ospfd_conf['area']}\n";
if (is_array($ospfd_conf['row'])) {
foreach ($ospfd_conf['row'] as $redistr) {