Forum Discussion
How to remove config from LTM policy using CLI?
The rules are given an ordinal value when they are added. See below - a single policy with two rules. "rule2" is matched first and "Test-Client2" is matched second. These can be reordered via the GUI or by setting the ordinal value.
root@(B3600-R20-S13)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm policy Test
ltm policy Test {
controls { forwarding }
requires { http }
rules {
Test-Client1 {
actions {
0 {
forward
select
pool test_pool
}
}
ordinal 2
}
rule2 {
actions {
0 {
log
write
message test
}
}
ordinal 1
}
}
strategy first-match
}
I can then change this using modify:
root@(B3600-R20-S13)(cfg-sync Standalone)(Active)(/Common)(tmos) modify ltm policy Test rules modify { rule2 { ordinal 3 } }
Which gives me this: root@(B3600-R20-S13)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm policy Test { controls { forwarding } requires { http } rules { Test-Client1 { actions { 0 { forward select pool test_pool } }
ordinal 2
}
rule2 {
actions {
0 {
log
write
message test
}
}
ordinal 3
}
}
strategy first-match
}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