How do I introduce a new node to bigIP?

I have not been able to find a method in LocalLB to add a new node to the box so that I can then add a pool. BTW is there a way to create and empty pool? Could I use the add node method to create a new by adding a new node to an existing pool?

Thanks Joe. That answers my question exactly. I was wondering why there wasn’t a new_node method somewhere. I suppose the API is saying that a node out of context of a pool makes no sense, so the usage of pool is the only method to create a node?

Great! Glad to help. Don’t hesitate to post any other questions that might come up.

-Joe

There is no way to add a node by itself. If you are creating a new pool, then you need to use the ITCMLocalLB::Pool::create() method:

void ITCMLocalLB::Pool::create(   
       in String pool_name,   
       in LBMethod lb_method,   
       in IPPortDefinition[] members   
   );

This will create a new pool with the specified members. In answer to your BTW question: No, a pool must have at a minimum one member. If you pass in an empty array for the members parameter, you will get a Fault returned. Or, if you try to delete all the members with the ITCMLocalLB::Pool::delete_members() method, it will return an error stating that the pool cannot be empty.

If you have an existing pool you want to add nodes to, use the ITCMLocalLB::Pool::add_members() method.

void ITCMLocalLB::Pool::add_members(   
       in String pool_name,   
       in IPPortDefinition[] members   
   );

Once a node is a member of a pool, it will exist as an entity on the device and can be manipulated with the ITCMLocalLB::Node interface.

Hope this helps…

-Joe