Forum Discussion
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.
- Todd_Cromwell_9NimbostratusThe wrinkle I remember here is that the system internally adds a default profile when you delete the last profile on the VS. It sounds like that is what you are experiencing.
- Prakash_KrishnaNimbostratusHi Todd and All, I tried with transactions also by putting "remove and add" profiles into the same transaction, even then getting same error.And i am following the same thing like "verlocs"(remove profile followed by add profiles) It helps me only in executing the subsequent commands when i get the error in add profile, but i just wanted to modify the protocols and profiles of a particular Virtual server. Do i have any other option to overcome this. Regards, Prakash.K
- HankLiu_159320NimbostratusHello! Just checking if you ever found a solution to this? I'm running into the same problem.
- Dhana_02_288024Nimbostratus
I am running in to the same problem, After running remove and add I am getting the duplicate entry.
If any one know the solution please post it.
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