From a00b7d647c3e2fff4f338f0e42e31e35138a85cf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 16 Oct 2007 23:51:46 +0000 Subject: * Add more parameters * Handle neighbors that do not specify a group correctly --- packages/openbgpd/openbgpd.inc | 14 ++++++++++++++ packages/openbgpd/openbgpd_neighbors.xml | 5 +++++ 2 files changed, 19 insertions(+) (limited to 'packages') diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index 71eed449..ab98487d 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -84,6 +84,20 @@ function openbgpd_install_conf() { } } + + // Handle neighbors that do not have a group assigned to them + foreach($openbgpd_neighbors as $neighbor) { + if($neighbor['groupname'] == "") { + $conffile .= " neighbor {$neighbor['neighbor']} {\n"; + $conffile .= " descr \"{$neighbor['descr']}\"\n"; + foreach($neighbor['row'] as $row) { + $conffile .= " {$row['paramaters']} {$row['parmvalue']} \n"; + } + $conffile .= " }\n"; + } + } + $conffile .= "}\n"; + // OpenBGPD filters $conffile .= "deny from any\n"; $conffile .= "deny to any\n"; diff --git a/packages/openbgpd/openbgpd_neighbors.xml b/packages/openbgpd/openbgpd_neighbors.xml index cb8fb0ea..a983d23a 100644 --- a/packages/openbgpd/openbgpd_neighbors.xml +++ b/packages/openbgpd/openbgpd_neighbors.xml @@ -123,6 +123,11 @@ + + + + local-address + -- cgit v1.2.3