Forum Discussion
Muhammad_Irfan1
Cirrus
Oct 27, 2014Updating iRule during production.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/300MEFPOSTPAIDLive*" {
pool Tibco-LB-Group3
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
}
"/MefVscsLive*" {
pool Tibco-LB-Group4
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
}
"/MefAndroidLive*" {
pool Tibco-LB-Group5
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
}
}
}
if i add another proxypass in this iRule during production will it cause interruption? If i make another iRule and add another proxypasses in that iRule will it work?
4 Replies
- kunjan_118660
Cumulonimbus
There won't be interruption, but ensure no typo which will raise tcl error and interrupt the traffic.
- So i will have to careful with typo error. But if i make another iRule for other proxypasses. Like when HTTP_REQUEST { switch -glob [HTTP::uri] { "/300MEFPOSTPAIDLive*" { pool Tibco-LB-Group3 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/MefVscsLive*" { pool Tibco-LB-Group4 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/MefAndroidLive*" { pool Tibco-LB-Group5 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } } } iRule 2. when HTTP_REQUEST { switch -glob [HTTP::uri] { "/CBH*" { pool Tibco-LB-Group6 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/EFICS*" { pool Tibco-LB-Group7 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/super*" { pool Tibco-LB-Group8 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } } }
- kunjan
Nimbostratus
There won't be interruption, but ensure no typo which will raise tcl error and interrupt the traffic.
- So i will have to careful with typo error. But if i make another iRule for other proxypasses. Like when HTTP_REQUEST { switch -glob [HTTP::uri] { "/300MEFPOSTPAIDLive*" { pool Tibco-LB-Group3 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/MefVscsLive*" { pool Tibco-LB-Group4 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/MefAndroidLive*" { pool Tibco-LB-Group5 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } } } iRule 2. when HTTP_REQUEST { switch -glob [HTTP::uri] { "/CBH*" { pool Tibco-LB-Group6 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/EFICS*" { pool Tibco-LB-Group7 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } "/super*" { pool Tibco-LB-Group8 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects