Forum Discussion
someguy
Nimbostratus
Apr 01, 2014How to set partition with LocalLBPoolBindingStub?
Our current implementation with 10.x leverages the iControl library to gather pool and other data via the LocalLBPoolBindingStub. With the v11 migration partition names are appear in all of the attributes unnecessarily. I have read here that you can use set_active_parition or set_active_folder to only focus on one partition, however that does not appear to be available on LTM stubs. Any help would be appreciated.
private String[] getPoolNamesAsArray()
LocalLBPoolBindingStub poolStub = (LocalLBPoolBindingStub) IControlStubFactory.getStub("LocalLBPool", context.getActiveEndpoint("my_ltm"));
String[] poolNames = null;
try {
//poolStub.set_active_partition("Common");//method does not exist
poolNames = poolStub.get_list();
} catch (RemoteException e) {
logger.error("Error getting pool list.", e);
}
return poolNames;
}
No RepliesBe the first to reply
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