aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-16 23:51:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-16 23:51:46 +0000
commita00b7d647c3e2fff4f338f0e42e31e35138a85cf (patch)
treee7c94253f9623fcf8398074331357cf8f7b18292 /packages/openbgpd/openbgpd.inc
parent003130f10696f13a16d22077c1e185c927afbcc5 (diff)
downloadpfsense-packages-a00b7d647c3e2fff4f338f0e42e31e35138a85cf.tar.gz
pfsense-packages-a00b7d647c3e2fff4f338f0e42e31e35138a85cf.tar.bz2
pfsense-packages-a00b7d647c3e2fff4f338f0e42e31e35138a85cf.zip
* Add more parameters * Handle neighbors that do not specify a group correctly
Diffstat (limited to 'packages/openbgpd/openbgpd.inc')
-rw-r--r--packages/openbgpd/openbgpd.inc14
1 files changed, 14 insertions, 0 deletions
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";