diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-17 03:55:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-17 03:55:58 +0000 |
commit | 6bcdfc524daec5cddaf5b52898a648fee67d1500 (patch) | |
tree | d1d92123351971c05524974e2e145c97cc73c91d /packages/openbgpd | |
parent | d195ea256107b4cfc580b7d8d90859c9a0838493 (diff) | |
download | pfsense-packages-6bcdfc524daec5cddaf5b52898a648fee67d1500.tar.gz pfsense-packages-6bcdfc524daec5cddaf5b52898a648fee67d1500.tar.bz2 pfsense-packages-6bcdfc524daec5cddaf5b52898a648fee67d1500.zip |
Do not leave a stray }
Diffstat (limited to 'packages/openbgpd')
-rw-r--r-- | packages/openbgpd/openbgpd.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index 4f73ed71..ffbe6d46 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -87,13 +87,16 @@ function openbgpd_install_conf() { // Handle neighbors that do not have a group assigned to them foreach($openbgpd_neighbors as $neighbor) { + $used_this_item = false; if($neighbor['groupname'] == "") { $conffile .= " neighbor {$neighbor['neighbor']} {\n"; $conffile .= " descr \"{$neighbor['descr']}\"\n"; + $used_this_item = true; foreach($neighbor['row'] as $row) { $conffile .= " {$row['paramaters']} {$row['parmvalue']} \n"; - } - $conffile .= " }\n"; + } + if($used_this_item) + $conffile .= " }\n"; } } $conffile .= "}\n"; |