Forum Discussion
tmsh2iapp - Personalize Objects Name
Hi all,
I'm using the tmsh2iapp utility to create an iApp template. I am able to create the template and instantiate it without any issues following the steps provided within the GitHub repo. tmsh2iapp
I am trying to change the object's name created with this iApp, I want the name to be a suffix of the app name, for example:
- App name: my_app
- pool name: my_app_pool
- vs name: my_app_vs
Here's the the content of my t2i file:
@label(__pm__pool_default__): Pool Members
@label(__virtual_address__): Virtual Address
@label(__vip_port__): VIP Port
ltm pool pool_default {
__pm__pool_default__
monitor gateway_icmp
}
ltm virtual virtual_server {
destination __virtual_address__:__vip_port__
ip-protocol tcp
mask 255.255.255.255
pool pool_default
profiles {
tcp { }
}
source 0.0.0.0/0
translate-address enabled
translate-port disabled
}
With this configuration all virtual servers created with the iApp are named virtual_server and all pools are named pool_default.
The section Personalize Objects Name summarize what I want to accomplish - Create iApp Template
Any guidance is greatly appreciate
Thanks,
Joel
- ulises_113044Historic F5 Account
Hi Joel,
you don't have to worry about uniqueness of the name of the objects created because the object's are created in a per-iApp instance folder, ie:
myapp1.app/virtual_server myapp2.app/virtual_server [...]
That is a feature of iApps in general.
Give it a try by creating two instances of your iApp, you will see there is no problem. This is the intended way of working of iApps.
Let me know if you have any other question
Regards
Ulises
PD: sorry I couldn't get back to you earlier, I was on holiday
- ulises_113044Historic F5 Account
You are the second person asking this so I've added it to the FAQ section in the wiki of tmsh2iapp
Regards
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