Forum Discussion
vinceKahn_97184
Mar 14, 2011Historic F5 Account
GTM - Topology irule
I'm trying to create an irule that uses one of my defined topology records to make a decision. I thought maybe "matchregion" would do it but can't get it to work. Maybe this isn't what matchregion is...
The_Bhattman
Mar 15, 2011Nimbostratus
Hi Vince,
It's a good start. You just have to make slight changes.
The following is a wiki reference for matchregion
http://devcentral.f5.com/wiki/default.aspx/iRules/matchregion.html
Thus your code changes to the following:
when DNS_REQUEST {
if { [matchregion ldns ip] equals $Parkwood } {
host 10.1.1.1
}
}
I hope this helps
Bhattman
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