diff options
Diffstat (limited to 'packages/openbgpd/openbgpd.inc')
-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"; |