Forum Discussion
Changing a LTM policy using iApp (or tmsh) in version 12.1
- Sep 26, 2016
Hi Jan, if you use the "legacy" parameter in your tmsh command, it will use the pre-12.1 syntax. You shouldn't need to specify a drafts folder.
thanks
Mike
Hi Jan, if you use the "legacy" parameter in your tmsh command, it will use the pre-12.1 syntax. You shouldn't need to specify a drafts folder.
thanks
Mike
- jan_de_wachter_Sep 27, 2016Nimbostratus
Mike, Thanks. I added the legacy keyword, and indeed it works!
if {$Version_v12 == "1"} { set vpol "ltm policy /Infrabel/$::new__env$vpol1 { legacy rules add { $vapp { actions add { $vrule } conditions add { 0 { http-host values { $vapp } } } ordinal 1 } } }" }
tmsh::create $vpol
Thanks a lot, it works fine, but it stays a work-around.
In my opinion, the 12.1 way should be working also:
-create draft from published policy
-modify draft
-publish draft
Jan
Recent Discussions
Related Content
* 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