Forum Discussion
arpydays
Feb 22, 2016Nimbostratus
I'm not sure you can put in a 1 liner rule like this and may need to drop to editor mode and paste in. You could also try putting this in via bash, note you need a space before default in your rule.
[root@f51:Active:Standalone] config tmsh create ltm rule /Common/myrule when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] {"xyz-external-fin.test.com" { pool xyz-external-fin } "xyz-external-prj.test.com" { pool xyz-external-prj } default { discard } } }
[root@f51:Active:Standalone] config tmsh list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] {xyz-external-fin.test.com { pool xyz-external-fin } xyz-external-prj.test.com { pool xyz-external-prj } default { discard } } }
}