Forum Discussion
Adding conditions to the currently running irule
Hello Team, we want to add two more lines in currently running I rule. please help me to do that and let me know how and where we are going to add that
Currently running I rule:
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/internal/connexion/service/v1" { HTTP::uri "/fft/proxy/connexion" pool flex-monolith } "/internal/manager/service/v1" { HTTP::uri "/fft/proxy/manager" pool flex-monolith } "/medq_esb/proxy_services/mmodal_voice_proxy_service*" { HTTP::uri "/fft/proxy/voice" pool flex-monolith } "/fft/proxy/voice" { pool flex-monolith } "/fft/rest" { pool flex-monolith } default { pool fft-osb } } }
adding contents are:
"/medq_esb/proxy_services/internal/medq_rule_engine_internal_proxy_service" { HTTP::uri "/rule-engine/services" pool } "/rule-engine/services" { pool }
1 Reply
- Michael_Jenkins
Cirrostratus
You can just add them to the switch before
. Don't forget to specify the right pool names though.defaultwhen HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/internal/connexion/service/v1" { HTTP::uri "/fft/proxy/connexion" pool flex-monolith } "/internal/manager/service/v1" { HTTP::uri "/fft/proxy/manager" pool flex-monolith } "/medq_esb/proxy_services/mmodal_voice_proxy_service*" { HTTP::uri "/fft/proxy/voice" pool flex-monolith } "/fft/proxy/voice" { pool flex-monolith } "/fft/rest" { pool flex-monolith } "/medq_esb/proxy_services/internal/medq_rule_engine_internal_proxy_service" { HTTP::uri "/rule-engine/services" pool POOL_NAME } "/rule-engine/services" { pool POOL_NAME } default { pool fft-osb } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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