Forum Discussion
ottleydamian
Cirrus
Jan 16, 2019Create a node based on an event
From my research I believe what I need is an iCall. But as per my other DevCentral post I'm not sure how to actually implement an iCall: HowTo: iCall Question
The task: An HTTP request has the f...
JRahm
Admin
Jan 17, 2019if the goal is to add the node to a pool, then yes, you'll need something like iCall to do that. If you just want to forward the request to the node and not have BIG-IP "manage" that node as a pool member with health monitors, then you can just do that straight up in an iRule. Assuming you are handling the fqdn extraction from the uri, a header, or the payload, it's pretty basic:
when RULE_INIT {
set static::ldns "x.x.x.x"
}
when HTTP_REQUEST {
set node_fqdn "your code to get fqdn here"
set node_ip [RESOLV::lookup @$static::ldns -a $node_fqdn]
if {$node_ip eq ""}{
didn't resolv, send to default pool?
} else {
multiple ip's possibly returned, this covers string and list scenario
node [lindex $node_ip 0]
}
}
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