Forum Discussion

jan_de_wachter_'s avatar
jan_de_wachter_
Icon for Nimbostratus rankNimbostratus
Dec 13, 2016

LTM: sort policy rules in iApp

We have a selfwritten iapp that creates 'standard' applications: Pool - Monitors - ... . We also create policy rules in our 'base' VS with the intention of forwarding to the just created VS.

 

This all works perfect, but the policy rule is added to the end of the list. Since we have first match, we prefer to sort the rules. Now we do this manually.

 

Is there a way to do this automatically? If possible using a procedure that can be added to the iApp?

 

Any help should be appreciated.

 

Jan

 

1 Reply

  • Presumably you use a tmsh command in the iApp to add the rule to the pre-existing LTM policy. Rather than just adding the entry, you will now have to use the tmsh commands to retrieve the existing policy, work out where to insert your new rule and regenerate the correct ordinal numbers and use the tmsh command to modify the LTM policy. I haven't seen anything to do this for you but it seems simple enough with the built-in tmsh commands. I'd be inclined to build it in tmsh first, then port it to iApp