Forum Discussion
Eray_27463
Nimbostratus
Sep 11, 2007Checking 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 - Eray_27463
Nimbostratus
LocalLB.NodeAddress.get_list() worked, thanks! - Great!
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects