Makefile.am                                                                    
           |    1 
 scripts/http_test.pl                                                           
           |   45 +++
 scripts/vyatta-wanloadbalance.pl                                               
           |   11 
 src/lbdata.cc                                                                  
           |    2 
 src/lbdatafactory.cc                                                           
           |   21 +
 src/lbdatafactory.hh                                                           
           |    3 
 src/lboutput.cc                                                                
           |    8 
 src/lbtest.hh                                                                  
           |    7 
 src/lbtest_icmp.cc                                                             
           |   10 
 src/lbtest_icmp.hh                                                             
           |    9 
 src/lbtest_ttl.cc                                                              
           |   15 -
 src/lbtest_ttl.hh                                                              
           |    2 
 src/lbtest_user.cc                                                             
           |  146 ++++++++++
 src/lbtest_user.hh                                                             
           |   67 ++++
 
templates/load-balancing/wan/interface-health/node.tag/test/node.tag/test-script/node.def
 |    3 
 
templates/load-balancing/wan/interface-health/node.tag/test/node.tag/type/node.def
        |    5 
 16 files changed, 327 insertions(+), 28 deletions(-)

New commits:
commit 25eef8bfb91c2c57907ab79f4ba6bcd9fe0064cb
Author: Michael Larson <[email protected]>
Date:   Wed Mar 30 12:09:58 2011 -0700

    check in for Bug 6959
    
    Add the ability to run a user defined script to determine wan 
load-balancing interface health
    
    includes sample http test (scripts/http_test.pl). Configuration will look 
as follows:
    
     wan {
         interface-health eth0 {
             nexthop 10.3.0.1
             test 1 {
                 test-script /tmp/http_test.pl
                 type user-defined
             }
         }
         interface-health eth1 {
             nexthop 10.3.0.1
             test 1 {
                 test-script /tmp/http_test.pl
                 type user-defined
             }
         }
    
    With corresponding output:
    
    vyatta@vyatta# run show wan-load-balance
    Interface:  eth0
      Status:  active
      Last Status Change:  Wed Mar 30 19:03:59 2011
      +Test:  user  Script: /tmp/http_test.pl
        Last Interface Success:  0s
        Last Interface Failure:  n/a
        # Interface Failure(s):  0
    
    Interface:  eth1
      Status:  failed
      Last Status Change:  Wed Mar 30 19:03:59 2011
      -Test:  user  Script: /tmp/http_test.pl
        Last Interface Success:  n/a
        Last Interface Failure:  0s
        # Interface Failure(s):  52
    
    Scripts returns 0 for success, non-zero for failure.

http://suva.vyatta.com/git/?p=vyatta-wanloadbalance.git;a=commitdiff;h=25eef8bfb91c2c57907ab79f4ba6bcd9fe0064cb
_______________________________________________
svn mailing list
[email protected]
http://mailman.vyatta.com/mailman/listinfo/svn

Reply via email to