Modify local traffic policy from CLI or API
I recently got enjoy the GUI for local traffic policy management and determined that it's an abomination. You can't duplicate a policy so it's click-click-click all the way through to add eight near identical policies. You can't rename so that one where I forgot to update the name, delete and rebuild. Oh, and there's no true default policy so if you have one that's supposed to be the default you need to manually drag it to the end of the list.
The request boiled down to, if the URI starts with /A send it to A-pool, /B send to B-pool, etc. This is really tedious in the GUI.
Is there a better way to do it?
Please tell me there are CLI examples that I didn't find yesterday or that there's an API call I could have made to do this.
Thanks
Hello Dave.
You could list your configuration with "list ltm policy ..", copy this to a notepad and modify everything you want and import this to current configuration using "merge" command.
It's really easy to use.
REF - https://support.f5.com/csp/article/K81271448
KR,
Dario.