Applies To:
Show Versions
Enterprise Manager
- 3.1.1
About templates
A template is as a model of a configuration on which you base a new configuration for another target device. Template variables are unique values, or settings, that are specific to a managed device such as virtual server names, node addresses, port information, and so forth. Some network objects (for example, nodes or pools) automatically generate variable information when you add them to a template. Other network objects (such as system settings) require that you manually add variable information, like the variable name and default value.
System-provided templates
The system ships with several templates that you can use for common configuration tasks.
System-provided template | Use to |
---|---|
ltm_create_simple_http_vip_and_pool | Create a basic HTTP virtual server and pool. |
ltm_pool_member_disable | Disable a local traffic pool member (allows established sessions). |
ltm_pool_member_enable | Enable a local traffic pool member. |
ltm_pool_member_down | Set a local traffic pool member's status to down (allowing no new connections). |
ltm_node_enable | Enable a local traffic server address (all pools). |
ltm_node_disable | Disable a local traffic server address (for all pools, only allowing established connections). |
ltm_node_down | Set a local traffic server address to down (for all pools, allowing no new connections). |
About managing templates
There are three different options for creating a new template: using an existing device as a model, using an existing template as a model, or creating the template by adding pre-set object class paths to populate the template text field. You can also import (as well as export) templates on DevCentral™.
After you create a template, you can review and modify the template variable text as required. When you want to make the template available for others to use, you can publish it.
Creating a template based on an existing device's configuration
Creating a template using text
Importing a template from DevCentral
Exporting an ASM security policy
Reviewing template variable text
About template variable syntax
When you create a template using the Template Wizard, you are prompted for information and the system automatically generates the appropriate syntax. After you have created a template, you can review the template variable syntax and add additional variables, as required.
The template variable syntax is @define <variable_name> where <variable_name> is the name of the variable in the network object. For example, the following entry in the Text field of the Template Variable Properties screen disables a node.
@define @node_ip @F5[Local Traffic / Node] #F5[$target_partition$] node @node_ip { session disable }The variables in this example template are defined as follows:
Variable | Description |
---|---|
@define | Flags the line as a variable and prompts the system to replace the variable for @node_ip that you specified for the template. |
@F5[Local Traffic / Node] | Indicates the target object class and instance. |
@f5[$target_partition$] | Indicates the partition on the target. |
node @node_ip { | Starts the command that disables the node indicated by the variable @node_ip. |
Template variable descriptions
Template variables are defined here.
Template Variable | Description |
---|---|
Variable Name | Typically assigned by the system, this name appears in the template configuration text and staged changeset if you do not specify a variable description. |
Default Value | The system uses the default value for a variable when you deploy a changeset based on the template you create. |
Description | A variable description is an important tool for properly identifying an existing template. |
Editable | Used by the Administrator-level user to specify whether users can change a variable when they use this template to stage a changeset. |
Visible | Used by the Administrator-level user to hide the variable setting from restricted users when they use the template to stage a changeset. |
sEdit Allowed Value | Used by the Administrator-level user to specify which values a user can select from when staging a changeset with this template. |