Forum Discussion

Jeff_Browning_2's avatar
Jeff_Browning_2
Historic F5 Account
May 22, 2003

How to I introduce a new node into a specific pool?

I have been looking at the apidocs (LocalLB methods) but I don't know which method is appropriate to use. Any tips would be great.

 

 

Thanks, Jeff

1 Reply

  • The ITCMLocalLB::Pool interface is used to manipulate members in a given pool. The specific method that you want is.

     

     

    void add_members

     

    (

     

    String pool_name

     

    IPPortDefinition[] members

     

    );

     

     

    Code to add member "10.10.10.10:80" to pool "web_servers" this would look something like the following with Apache/SOAP.

     

     

     

     
         String pool_name = "web_servers"; 
         IPPortDefinition[] members = new IPPortDefinition[1]; 
         members[0] = new IPPortDefinition("10.10.10.10", 80); 
          
         Vector params = new Vector(); 
         params.addElement( 
             new Parameter("pool_name", String.class, pool_name, null)); 
         params.addElement( 
             new Parameter("members", IPPortDefinition[].class, members, null)); 
         call.setParams(params); 
      
         call.setMethodName("add_members"); 
         Response resp = call.invoke(...); 
         ....