verlocs_96134
Aug 16, 2012Nimbostratus
VirtualServer:add_profile cannot set a new client protocol profile
I've been writing a script that will need to replace the protocol profile (both server and client) on a large number of existing virtual servers.
I've found that when you attempt to add a server or client protocol profile to a virtual server that already has different ones specified, you get a duplicate entry error. Okay, so I script to first REMOVE the protocol profile, which was itself complicated as there's no "remove profile by type" command.
So I remove the existing protocol profiles from the virtual server, and attempt to add again, and boom, duplicate profile error.
When I removed the protocol profiles, F5 re-added the default protocol profile for the client protocol profile and the server protocol profile inherits the client.
As far as I'm aware right now, the only way in the API to alter the client protocol profile is to destroy the virtual server entirely and recreate it. But in the UI it's possible to change it. I know the value has to be SOMETHING at all times, it can't be empty, but there is no "set profile" for virtual server, only add and remove.
The api only gives me the ability to add and remove and yet it's adding the object I want to remove to replace in a subsequent add call.