Forum Discussion
Can't create Node in iApp using variables
Hi! I'm trying to create a Node using iApp with the following simple Implementation:
package require iapp 1.0.0
iapp::template start
set addr 1.1.1.1
iapp::conf create ltm node test { address $addr }
iapp::template stop
But when I create a new Application using this iApp, I receive the following error:
script did not successfully complete: ("$addr" invalid IP address while executing "tmsh::create [string range $args 7 end] " ("create" arm line 1) invoked from within "switch -exact -- [string range $args 0 5] { create { tmsh::create [string range $args 7 end] } modify { tmsh::modify [string r..." (procedure "iapp::conf" line 14) invoked from within "iapp::conf create ltm node test { address $addr }" line:6)
In the other hand, if I use the following Implementation (using an IP, not a variable), it works:
package require iapp 1.0.0
iapp::template start
iapp::conf create ltm node test { address 1.1.1.1 }
iapp::template stop
Is there any cast I must do?
Thanks!
2 Replies
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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