Forum Discussion

Naresh_N's avatar
Icon for Nimbostratus rankNimbostratus
Feb 13, 2011

Error condition check in

Hi there,



The script works great but I found that it fails if there is no pool in a VIP e.g. an IP_Forwarding VIP. I'm new to using SOAP, appreciate if someone can provide a solution.








2 Replies

  • That's why they call it a sample B-).



    Sorry, I forgot to test that case when I was writing it. The problem is that for virtuals without a default_pool, an empty string is returned in the get_default_pool() method and I was using that list to pass into the Pool.* methods. Some of them don't like it when an empty string is passed in and assume that's an error. I'll see what I can do to make it work with non-pool virtuals.





  • Ok, I've updated the wiki with some code that should take into account when the virtual doesn't have a pool assigned to it. Let me know how that works for you...