swo0sh_gt_13163
Feb 25, 2015Altostratus
Convert HTTP Class iRules for version 11.5.1 or later
Hello Folks,
I had a customer who is using the old version of iRules, which contains HTTP Class selected commands, and now they want to upgrade to 11.5.1. The command is no longer supporting in that version and I am not able to convert it to compatible way to accept that iRule in 11.5.1
Sample iRule from the customer setup is as following.
ltm rule /Common/Ems_staging_admins {
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals "disable_asm_ip_ranges"] }{
HTTP::class select /Common/cls_EMS_staging_admin
}
else {
HTTP::class select /Common/cls_EMS_staging
}
}
}
ltm rule /Common/efax_smtp_allow {
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals "allowed_ip_efax"] }{
log local0. "allowed to relay from [IP::client_addr]"
}
else {
drop
log local0. "Not allowed to relay from [IP::client_addr]"
}
}
There are 2 iRules, and many more which needs to get edited. Can anyone shed some light on how can I modify the iRule in a way where it can be applied on 11.5.1
I have tried to follow the article, however I couldn't fix it.
Thank you, Darshan