Forum Discussion

Paul_Mavis_1490's avatar
Paul_Mavis_1490
Icon for Nimbostratus rankNimbostratus
Aug 07, 2014

Getting the Self IP in a route domain in an iRule

Hello everyone,

 

I have a number Partitions (and associated route domains). I also have 2 independent BigIP F5 LTM devices deployed in separate data centres (they're not configured for HA).

 

For various reasons we're using an iRule to perform outbound source NAT, selecting the source NAT address depending on the destination address. (Our DNS Resolving hosts will initiate outbound connections to recursively lookup FQDNs, in some cases these connections will go to the Internet, in other cases these connections will be directed to one of our partner organisations).

 

I want to keep the iRule generic so that the same iRule can be deployed on both of the LTMs. For various reasons I need to identify which of the LTMs the script is running on. I figured the Self IP address of the partition would allow me to distinguish which of my two LTMs the script is running on. However, try as I might I don't seem to be able get the Self IP.

 

Is there any easy way to get the Self IP? Is there perhaps an alternative solution to identify the LTM I'm running on (without setting a specific variable!)?