Forum Discussion

Dmitriy_Mukhin_'s avatar
Dmitriy_Mukhin_
Icon for Nimbostratus rankNimbostratus
Jul 05, 2005

node select expr based on server_addr

I'm going to map a server IP address (server_addr) for a wildcard virtual server to a pool member using the following node select expression:

 

 

select node("192.168.0." + getfield("${server_addr}", '.', 4) + ":${server_port}")

 

 

Does this syntax make any sense? Will it work? Is there more efficient way to choose a pool member IP address based on the server_addr variable?

 

 

Thank you,

 

 

Dmitriy
  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    Instead of checking existence, wouldn't it be better to make a giant key->value pair datagroup and have the MAC searched (key) returned the number of the group matched (value).

     

    • Pedro_Haoa's avatar
      Pedro_Haoa
      Ret. Employee

      It could be.

       

      This approach is worse because it's heavier to process. But I think this way is better in terms of management, segmentation and granularity.

       

      Can you add more details with an example?