Forum Discussion

qqdixf5_74186's avatar
qqdixf5_74186
Icon for Nimbostratus rankNimbostratus
Jun 12, 2008

Change vs' http profile

We have a virtual server using an iRule that requires the vs has a http profile associated to it. Now I am working on an application that changes virtual server settings, including reset http profile. My question is, how can I change vs' http profile using iControl?

 

 

I see LocalLBVirtualServer has two methods, add_profile() and remove_profile(). I was trying to remove the old profile and then add the new profile. However, removal operation fails because the iRule requires a http profile. But, I can't simply add the new profile since I am getting a "duplicate profile" error.

 

 

Is there any other method available that can make this work? Thank you!

 

 

qq

2 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Could you remove the rule, then the HTTP profile, add the new HTTP profile and then the rule?

     

     

    Aaron
  • sure, I can do that. I was wondering if there is a cleaner way to do that.

     

     

    Thanks!