Forum Discussion
DevBabu_124276
Nimbostratus
Apr 23, 2015iApp question
I have created iApp to create a pool, but whenever i use existing ip address as pool member ip i get the following error message as shown in picutre.
How can I use lab5 node as pool member if exists and check succeeds when i enter IP address.
1 Reply
- PeteWhite
Employee
This is because you're trying to add the new node. You need to have a question whether to create a new pool or use an existing one. I use the following for my question section:
choice pool display "xxlarge" default "/create_new" tcl { package require iapp 1.1.0 return "Create a new pool\t/create_new\n[iapp::get_items ltm pool]" } optional ( pool == "/create_new" ) { Build a table of pool members choice lb_method default "least-connections-member" display "xxlarge" choice monitor display "xxlarge" default "/create_new" tcl { package require iapp 1.1.0 set choices "Create a new health monitor\t/create_new\n[iapp::get_items ltm monitor http]\n[iapp::get_items ltm monitor https]\n[iapp::get_items -filter NAME != "external" ltm monitor external]" return $choices } optional ( monitor == "/create_new" ) { string uri default "/" choice http_version display "xxlarge" default "http11" optional ( http_version == "http11" ) { string host required display "large" validator "FQDN" } string response display "xxlarge" default "200 OK" } table pool_members { editchoice addr display "large" tcl { package require iapp 1.1.0 return [iapp::get_items ltm node] } string port display "small" required default "80" validator "PortNumber" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects