Forum Discussion

Eray_27463's avatar
Eray_27463
Icon for Nimbostratus rankNimbostratus
Sep 11, 2007

Checking the existence of a nodeaddress

Is there an API to check if a given IPAddress is exists in LoadBalancer table or not?

 

I am using m_interfaces.LocalLBNodeAddress.get_session_enabled_state(new string[] { address });

 

before I run this I want to check if the address exists or not so that I don't get a "operationfailed" exception

 

Thanks,

3 Replies

  • At this point, there is not "does_exist()" method.

     

     

    LocalLB.NodeAddress.get_list() will return a list of node addresses. You can then compare your address to the returned list to see if it exists.

     

     

    Either that or you could do what you are doing and just trap the response. There is really no downside to going this route as exception handling is a valid development technique.

     

     

    -Joe