The set_availability method will take either AVAILABILITY_UP (2) or AVAILABILITY_DOWN (1). It should return an InvalidArgument exception for any other status. Passing in a value of 1 will take the node down. If you are seeing different behavior, let us know.
No, it appears that is working correctly. The node state goes to disabled when we used that function.
If you want to disable all traffic (including current connections), then you can call the ITCMLocalLB::Node::set_state() method with STATE_DISABLED, which should (if I can remember correctly) cause a forced down availability status.
This will disable the node, however existing connections will persist to that node. Both functions seem to be doing the same thing.
We need either function to force down a node with all current connections being forced over.
Thanks.
Peter