Greg_Jewett
Mar 11, 2019Cirrus
Configure virtual server with pool using tmsh
I am using iApps to create all my objects, so I can easily edit them, duplicate them, etc.
Most of my iApp code is tmsh::create { } with all the parameters within to create the object. However, the most recent stumper is getting a pool attached to the virtual server.
With the code below:
tmsh::create ltm virtual /Common/tableau_test_443_vs {
destination /Common/128.83.124.23:443
ip-protocol tcp
mask 255.255.255.255
profiles replace-all-with {
/Common/serverssl {
context serverside
}
/Common/std_https_prof { }
/Common/tableau_test_cert_prof {
context clientside
}
/Common/tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
pool tableau_test_443_pool
}
I get the following error:
01020036:3: The requested pool (tableau_test_443_pool) was not found.
The pool exists and to be sure I spelled right, I copied and pasted the name. What is the syntax for adding a pool? Am I missing something?