Skip to content

Instantly share code, notes, and snippets.

@sebbbastien
Last active December 29, 2016 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebbbastien/3e53682cd13ab147993bc1cf248480fd to your computer and use it in GitHub Desktop.
Save sebbbastien/3e53682cd13ab147993bc1cf248480fd to your computer and use it in GitHub Desktop.
#TMSH-VERSION: 12.1.1
cli admin-partitions {
update-partition Common
}
sys application template /Common/_test {
actions {
definition {
html-help {
}
implementation {
set static { ip-protocol tcp snat automap }
set vip ${::vs__vip}
iapp::conf create ltm virtual ${tmsh::app_name}_HTTP destination ${vip}:80 $static
iapp::conf create ltm virtual-address /Common/${vip} traffic-group $::vs__traffic_group arp disabled route-advertisement enabled app-service none
}
macro {
}
presentation {
section vs {
string vip required validator "IpAddress"
choice traffic_group tcl { return [iapp::get_items cm traffic-group] }
}
text {
vs.vip "Virtual IP"
}
}
role-acl none
run-as none
}
}
description none
ignore-verification false
requires-bigip-version-max none
requires-bigip-version-min none
requires-modules { ltm }
signing-key none
tmpl-checksum none
tmpl-signature none
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment