Add/Modify/Copy Configuration Template
Perform this task to add, modify, or copy a configuration template. To add a configuration
template, specify the template name, template type, and configuration content. You can copy an
existing configuration template and modify its parameters to create a new template.
Operation Procedure
- Select the Service tab, click the Configuration Center in the navigation
tree to enter the Configuration Templates page.
- Click Add to display the Add Configuration Template page.
- Enter a template name, select a template type, enter the configuration content, and
then click OK.
- Use one of the following methods to display the Modify Configuration Template
page:
- Method 1: In the Configuration Templates page, click the Modify icon
for a configuration template.
- Method 2: In the Configuration Templates page, click a configuration
template name to display the Configuration Template Details page, and then click Modify.
- Configure the template parameters as needed and click OK.
- In the Configuration Templates page, click the Copy icon for a
configuration template to display the Copy Configuration Template page.
- Configure the template parameters as needed and click OK.
Precautions
- The content of a configuration template can contain variables. Variables include value
variables and configuration template variables.
A value variable is in the format of
${value variable name}, such as ${ip address}, where ip address is used as the
value variable name. When you deploy the configuration template, ${ip address} will be
replaced by the IP address that you set.
A configuration template variable is in the
format of ${configuration template variable name}, for example, §{configTemplate},
where configTemplate is used as the configuration template variable name.
When you deploy the configuration template, §{configTemplate} will be
replaced by the contents of the configuration template that you select.
- The variable name cannot include invisible characters, §, $,
{, or }.
- Template content cannot exceed 256 parameters.
- If the template type is CLI script, use either of the simple mode or advanced mode to
input content.
In simple mode, do no input ^|^, ^|, or |^ for prompt and command.
In advanced mode, the complete content for each line is in the format of command^|^prompt.
Each line can have only one ^|^, and no ^| or |^ is allowed.
- To specify only a prompt for a line, input the prompt content and ^|^. For example
[device]^|^. To specify only command for a line, input the content of the command directly.
- The Successful Prompt means the command executed successfully and continuing
next command only if the device's echo information matches the prompt. The Error Prompt
means the command executed failed and exit when the device's echo information matches the
error prompt. In the Advanced Mode, the default mode is Successful Prompt, the
"!" means Error Prompt. For example, the string "dis acl number ^|^
acl" indicates a successful prompt of "acl", whereas the string "dis acl
number ^|^ !acl" indicates an error prompt of "acl".
Related Topics