diff options
author | jim-p <jimp@pfsense.org> | 2012-04-04 11:56:31 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-04-04 11:58:41 -0400 |
commit | 3adf39831285c21e65dc16be241202d127969d5e (patch) | |
tree | bbc7fc999d88a6f84373776257e1438cdd8507ba /config/quagga_ospfd | |
parent | 14c7eb8ab7fff868e2910e7112793f5d64bf6575 (diff) | |
download | pfsense-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/quagga_ospfd')
-rw-r--r-- | config/quagga_ospfd/quagga_ospfd.inc | 3 |
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) { |