Forum Discussion
iApps tempate for Virtual server configurtaion
iApps tempate for Virtual server configuration with Advanced Configuration Presentation section questionare for
VLAN and Tunnel Traffic
SNAT Pool
Thanks, Sukumar
12 Replies
- PeteWhite
Employee
what is your question? - Sukumar_121924
Nimbostratus
I should be able to define Vlan and SNAT pool options when I create Virtual servers using iApps , but not able to do that. - cjunior
Nacreous
Hi,
What iApp template are you talking about?
Usually these options are on display when we choose Advanced options.
[ ] - Fred_Slater_856Historic F5 AccountCan you be more specific? The f5.http iApp, for example, has both VLAN and SNAT pool options.
- Sukumar_121924
Nimbostratus
Thanks for the information .
But my BIG-IP version is 11.2.1 and iApp template f5.http does not have all the parameters as shown above.
Can you please let me know , how to get the latest Template and upload to the device.
- cjunior
Nacreous
Hi Sukumar, Maybe someone disagrees but, unfortunately do not have the option in this template version.
Anyway, the address for downloading the templates in that BIGIP version is:
https://downloads.f5.com/esd/product.jsp?sw=BIG-IP&pro=big-ip_v11.x&ver=11.2.1But there will only be more specific templates than the basic templates.
Also take a look at:https://devcentral.f5.com/codeshare/tag/iapps
I think for now, what you can do is looking for or clone the f5.http template and add a custom code to approach the VLAN list. I can send you the code with example if you need it.
Regards. - Sukumar_121924
Nimbostratus
Please send the custom code to approach the VLAN list and the SNAT options (None or Automap).
- Sukumar_121924
Nimbostratus
I should get the following options. Also please upload the codeshare in .txt format as I am unable to open .tmpl format . You can share just the particular part of the codeshare.
- Sukumar_121924
Nimbostratus
Hi cjunior , Can you help me with my requirement . Thanks - Sukumar_121924
Nimbostratus
Need help to compete my iApp template .
- cjunior
Nacreous
Hi, sorry for delay. Here the snippet for the goals, but it takes little more than that to apply. 🙂
choice client_vlan_option default "all" display "xlarge" { "Enable traffic on all VLANs" => "all", "Yes, enable traffic only on the VLANs I specify" => "enabled", "Yes, disable traffic only on the VLANs I specify" => "disabled" } optional ( client_vlan_option != "all" ) { multichoice client_vlan display "large" tcl { tmsh::run_proc f5.app_utils:get_items net vlan } } - cjunior
Nacreous
Implementation snippet:
proc tmsh_modify_vlan { vs_name } { if { $::basic__client_vlan_option == "all" } { set vlan_name "none vlans-disabled" } else { set vlan_name "replace-all-with \{ " foreach name $::basic__client_vlan { append vlan_name $name append vlan_name " " } append vlan_name "\} vlans-$::basic__client_vlan_option" } tmsh_modify "/ ltm virtual" "$vs_name vlans $vlan_name" }I did it with "modify" to not totally change the original script. So whenever a virtual server is created, I keep that name and provide it to this proc.
Regards.
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