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
rgordon_01
Mar 02, 2016Nimbostratus
Hi Radu,
thanks for the info. I've never used CONCATENATE before but I did a little research and was able to create a text file that I should be able to copy and paste in TMSH. I will get back to you hopefully tomorrow after I test and confirm it's doing what I need it to do.
thanks!