Forum Discussion
raduioncu_16351
Nimbostratus
Hi,
You can easily script a data group generation (even from Excel - use CONCATENATE() ) that contains the subnet as key and the pool name as data so you can more easily assign the pool - then just copy and paste the entries in TMSH.
create ltm data-group internal TEST-IP type ip
modify ltm data-group internal TEST-IP records add { 10.1.0.0/24 { data "STOREA-POOL" } }
modify ltm data-group internal TEST-IP records add { 10.2.0.0/24 { data "STOREB-POOL" } }
....
ltm data-group internal TEST-IP {
records {
10.1.0.0/24 {
data STOREA-POOL
}
10.2.0.0/24 {
data STOREB-POOL
}
}
type ip
}
Radu
raduioncu_16351
Mar 03, 2016Nimbostratus
Hi,
The mask notation, whether it is /24 or 255.255.255.0 should be irrelevant - you should still be able to match the client IP with the data group using [class match [IP::client_addr] equals TEST_IP]