From 3adf39831285c21e65dc16be241202d127969d5e Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 4 Apr 2012 11:56:31 -0400 Subject: Don't print an empty network when generating an ospf config for quagga. --- config/quagga_ospfd/quagga_ospfd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/quagga_ospfd') 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) { -- cgit v1.2.3