Forum Discussion

someguy's avatar
someguy
Icon for Nimbostratus rankNimbostratus
Apr 01, 2014

How 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