Forum Discussion
hooleylist
Feb 11, 2013Cirrostratus
Hi RL,
Here are a few thoughts on this:
- Combine the data group entries so you're reducing the number of class searches. Instead of having separate data groups for site1_address_datagroup, site2_address_datagroup, etc, you could combine them into one siteX_address_datagroup. If you need to differentiate between different addresses per site, you could set a value per address key showing which site an address is for:
1.1.1.1 := site1
2.1.1.1 := site2
3.1.1.1 := site3
When you check if the FQDN is in the whitelist, save the return value so you can avoid a second lookup:
current:
if { [class match $fqdn equals site1_whitelist] } {
suggested:
if { [set FakeIPv4 [class match -value -- $fqdn equals site1_whitelist]] ne ""} {
Aaron