Describes methods for creating CLI templates, including the distinction between the device configuration option and the intent option.
Device configuration-based CLI templates for Cisco IOS XE Catalyst SD-WAN devices
A device configuration-based CLI Template for Cisco IOS XE Catalyst SD-WAN devices is a configuration management tool that:
-
enables Cisco SD-WAN Manager (vManage 20.1.1 and later) to specify CLI templates using yang-cli,
-
pushes only the difference between device and template configurations to Cisco IOS XE Catalyst SD-WAN devices, and
-
provides a preview of configuration changes before deployment.
These templates are used alongside feature templates and policies, including localized and security policies, in Cisco SD-WAN Manager.
To configure features not accessible using Cisco SD-WAN Manager, we recommend doing the following:
Use the relevant feature template in addition to a CLI add-on feature template.
For situations where the previous option is not sufficient, use the device configuration-based CLI templates as described in this section.
Create a CLI template using the device configuration option
Procedure
| 1. | From the Cisco SD-WAN Manager menu, choose .
|
|
| 2. | From the Create Template drop-down list, select CLI Template. |
|
| 3. | From the Device Model drop-down list, select the type of device for which you are creating the template. |
|
| 4. | In the Template Name and Template Description, enter a name upto 128 alphanumeric characters and a description upto 2048 alphanumeric characters. |
|
| 5. | Choose Device configuration. Using this option, you can provide Cisco IOS XE configuration commands that appear in the output of the (Optional) To load the running config of a connected device, select it from the Load Running config from reachable device list and click Search. |
|
| 6. | In CLI Configuration, enter the configuration either by typing it, cutting and pasting it, or uploading a file. |
|
| 7. | To convert an actual configuration value to a variable, select the value and click Create Variable. Enter the variable name, and click Create Variable. You can also type the variable name directly, in the format {{variable-name}}; for example, {{hostname}}. These variables can be filled in device variables page per device after attaching the template. Values can be entered manually or can be uploaded via a csv file. |
|
| 8. | Click Add to save the feature template. |
The new device template is displayed in the Device Template table.
Intent-based CLI templates for Cisco IOS XE Catalyst SD-WAN devices
An intent-based CLI template for Cisco IOS XE Catalyst SD-WAN devices is a configuration management tool that:
-
allows Cisco SD-WAN Manager to configure CLI templates using intent-based commands,
-
supports vEdge device syntax for command input, and
-
pushes vEdge syntax-based commands to Cisco IOS XE Catalyst SD-WAN devices in IOS XE syntax.
Intent-based CLI templates enable configuration of Cisco IOS XE Catalyst SD-WAN devices using vEdge syntax via Cisco SD-WAN Manager.
With the support of device configuration-based CLI templates, the intent-based CLI templates will be deprecated. We recommend using the device configuration-based CLI templates as described in Device Configuration-Based CLI Templates for Cisco IOS XE Catalyst SD-WAN Devices.
Using Cisco SD-WAN Manager CLI templates significantly reduces the effort to configure feature templates.
Create a CLI template using the intent option
Procedure
| 1. | From the Cisco SD-WAN Manager menu, choose .
|
|
| 2. | From the Create Template drop-down list, select CLI Template. |
|
| 3. | From the Device Model drop-down list, select the type of device for which you are creating the template. |
|
| 4. | In the Template Name and Template Description, enter a name upto 128 alphanumeric characters and a description upto 2048 alphanumeric characters. |
|
| 5. | The configuration of the CLI template can either be intent-based or based on the device configuration:
Example:You can upload a configuration file using Select a File or copy and paste the CLI configuration. Following is an example of an intent-based CLI with variables.
These variables can be filled in device variables page per device after attaching the template. Values can be entered manually or can be uploaded via a csv file. |
|
| 6. | To save the feature template, click Add. |