[sr-dev] git:master: modules/lcr: added note about 'kamctl eval_weights' command

Juha Heinanen jh at tutpro.com
Mon Oct 4 17:05:18 CEST 2010


Module: sip-router
Branch: master
Commit: fcd61b36e044a560432fc150170aba3a04b06b7c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fcd61b36e044a560432fc150170aba3a04b06b7c

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Mon Oct  4 18:04:02 2010 +0300

modules/lcr: added note about 'kamctl eval_weights' command

---

 modules/lcr/README            |    7 ++++---
 modules/lcr/doc/lcr_admin.xml |    3 ++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/lcr/README b/modules/lcr/README
index 8fa8a98..617c0e0 100644
--- a/modules/lcr/README
+++ b/modules/lcr/README
@@ -235,9 +235,10 @@ Chapter 1. Admin Guide
    Weight is an integer value from 1 to 254. Weight implementation is
    fast, but unfair favoring larger weight values at the expense smaller
    ones. For example, if two gateways have weights 1 and 2, probability
-   that the gateway with weight 1 is tried first is 1/4, not 1/3. A script
-   is provided in lcr/utils directory that can be used to check the
-   probabilities resulting from a given set of weight values.
+   that the gateway with weight 1 is tried first is 1/4, not 1/3. Two
+   scripts are provided in lcr/utils directory that can be used to check
+   the probabilities resulting from a given set of weight values. Same can
+   be done with command 'kamctl eval_weights'.
 
    The function next_gw() can then be used to select one gateway at a time
    for forwarding. Upon each call, unless "dont_strip_of_tag" flag is set,
diff --git a/modules/lcr/doc/lcr_admin.xml b/modules/lcr/doc/lcr_admin.xml
index 562a7c0..12f2d09 100644
--- a/modules/lcr/doc/lcr_admin.xml
+++ b/modules/lcr/doc/lcr_admin.xml
@@ -73,8 +73,9 @@
 	fast, but unfair favoring larger weight values at the expense smaller
 	ones.  For example, if two gateways have weights 1 and 2, probability
 	that the gateway with weight 1 is tried first is 1/4, not 1/3.
-	A script is provided in lcr/utils directory that can be used to
+	Two scripts are provided in lcr/utils directory that can be used to
 	check the probabilities resulting from a given set of weight values.
+	Same can be done with command 'kamctl eval_weights'.
 	</para>
 	<para>
         The function <emphasis>next_gw()</emphasis> can then be used to




More information about the sr-dev mailing list