Forum Discussion
hooleylist
Jan 07, 2012Cirrostratus
Hi sshssh,
How are you selecting the pools? In general, you could select a SNAT pool based on the selected pool using a switch statement or datagroup to map pool names to snat pool names:
when LB_SELECTED {
Check the selected pool name
switch [LB::server pool] {
pool1 {
LB pool was pool1, so select the corresponding snat pool
snatpool pool1_snatpool
}
pool2 {
snatpool pool2_snatpool
}
default_pool {
LB pool was not pool1 or pool2, so select a default snat pool
snatpool default_snatpool
}
}
}
Aaron