Forum Discussion
MarkM_63051
Nov 29, 2011Nimbostratus
delete_pool not working
Hello,
I am attempting to create and delete a pool programatically. I had no problem with the create method but the delete_pool method does not seem to do anything. I can check the F5 GUI and the pool is still there. Is there some other method I should be using?
Regards,
Mark
- Nope, that should work. Could you post a snippet of your code where you are defining the parameters and the method call so I can make sure the pool name is getting passed in properly?
- MarkM_63051Nimbostratus
I believe the pool name is getting passed in properly because if I try to delete a pool that does not exist, then I get an error stating that.
- MarkM_63051Nimbostratusremoved
- JRahmAdminis the pool referenced by a virtual or an iRule? That would prevent it from being deleted.
- MarkM_63051NimbostratusExcuse my ignorance, but I have only been working with an F5 now for a total of about 6 days. I use the following code to create the pool in the first place. I am setting a LocalLBMethod and a LocalLBMonitorRule. Do I need to somehow unlink/delete them first?
- You might want to try to call lblpool.remove_monitor_association(new String[]{poolName}); before the call to delete pool to see if that clears up the associations.
- MarkM_63051NimbostratusThanks, that did it. It will take me a little bit to get the hang of the F5 APIs.
- MarkM_63051NimbostratusIs there any sample Java code that sets up and tears down a pool and pool members? It would save me a lot of questions.
- I haven't done much with Java on the samples front, but there should be something in the CodeShare (http://devcentral.f5.com/wiki/iControl.CodeShare.ashx) that will help you in the right direction.
- MarkM_63051Nimbostratus
Sorry Joe, but not much there. I am going to have to look outside of DevCentral.
I also wanted to mention as a newbie, that the F5 documentation
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