Forum Discussion
Running iFile (javascript code) from iRule
Is it possible to execute javascript code written in an iFile from within iRule?
what I want to achieve is, something like below:
when CLIENT_ACCEPTED {
run the javascript code in iFile which sends request to particular server
check the response from destination server and set some flag
}
when HTTP_REQUEST {
direct traffic to some other pools based on flags set above
}
I would appreciate if anyone could provide me with the solution. Thank you!
- cjunior
Nacreous
Hi, I don't know if you are talking about classic tcl iRule, but, you may need to script it using iRule LX.
Regards.
- rsacheen
Nimbostratus
Hello cjunior! Thank you for the comment on my question. You introduced me with something new and I found it interesting. I don't know if iRule LX feature can be used in BIG-IP Ver. 11.5.3 that I am using. Just did a brief search and it looks like the above version doesn't have the feature.
Thank you for sharing the knowledge. I appreciate.
Besides iRulesLX you may also want to checkout SIDEBAND. This can help you build a dynamic irule. See:
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