From f5a6a2d83dedb20f33711cf00ee7425eb8136bff Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 13 Oct 2010 19:55:54 +0200 Subject: add set nexthop parameters and fix many typos in openbgpd package --- config/openbgpd/openbgpd.inc | 14 +++++++------- config/openbgpd/openbgpd_neighbors.xml | 11 ++++++++--- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'config/openbgpd') diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc index 35485d3e..3f9d5ab0 100644 --- a/config/openbgpd/openbgpd.inc +++ b/config/openbgpd/openbgpd.inc @@ -35,7 +35,7 @@ function openbgpd_install_conf() { conf_mount_rw(); if ($config['installedpackages']['openbgpd']['rawconfig'] && $config['installedpackages']['openbgpd']['rawconfig']['item']) { - // if there is a raw config specifyed in tthe config.xml use that instead of the assisted config + // if there is a raw config specified in the config.xml use that instead of the assisted config $conffile = implode("\n",$config['installedpackages']['openbgpd']['rawconfig']['item']); //$conffile = $config['installedpackages']['openbgpd']['rawconfig']; } else { @@ -97,7 +97,7 @@ function openbgpd_install_conf() { $conffile .= " tcp md5sig key {$neighbor['md5sigkey']}\n"; } foreach($neighbor['row'] as $row) { - $conffile .= " {$row['paramaters']} {$row['parmvalue']} \n"; + $conffile .= " {$row['parameters']} {$row['parmvalue']} \n"; } $conffile .= "}\n"; } @@ -125,7 +125,7 @@ function openbgpd_install_conf() { } $used_this_item = true; foreach($neighbor['row'] as $row) { - $conffile .= " {$row['paramaters']} {$row['parmvalue']} \n"; + $conffile .= " {$row['parameters']} {$row['parmvalue']} \n"; } } if($used_this_item) @@ -172,7 +172,7 @@ function openbgpd_install_conf() { fclose($fd); exec("setkey -f {$g['tmp_path']}/bgpdsetkey.conf"); - // bgpd process running? if so reload, elsewise start. + // bgpd process running? if so reload, else start. if(is_openbgpd_running() == true) { exec("bgpctl reload"); } else { @@ -187,7 +187,7 @@ function openbgpd_get_raw_config() { return file_get_contents("/usr/local/etc/bgpd.conf"); } -// serialize the raw openbgpd confi file to config.xml +// serialize the raw openbgpd config file to config.xml function openbgpd_put_raw_config($conffile) { global $config; if ($conffile == "") @@ -286,8 +286,8 @@ function grey_out_value_boxes() { function grey_out_value_boxes() { var x = 0; for(x=0; x<99; x++) { - if( \$('paramaters' + x) ) { - var fieldvalue = $('paramaters' + x).options[$('paramaters' + x).selectedIndex].text; + if( \$('parameters' + x) ) { + var fieldvalue = $('parameters' + x).options[$('parameters' + x).selectedIndex].text; var length = fieldvalue.length; length = length -2; var last_two = fieldvalue.substring(length); diff --git a/config/openbgpd/openbgpd_neighbors.xml b/config/openbgpd/openbgpd_neighbors.xml index 56708a6c..93076ca8 100644 --- a/config/openbgpd/openbgpd_neighbors.xml +++ b/config/openbgpd/openbgpd_neighbors.xml @@ -127,8 +127,8 @@ rowhelper - Paramaters - paramaters + Parameters + parameters Neighbor settings. select @@ -147,7 +147,12 @@ - + + + + + + -- cgit v1.2.3