CLI Templates for Cisco XE SD-WAN Routers
The CLI Templates for Cisco XE SD-WAN Routers features allows you to configure intent-based CLI templates for Cisco XE SD-WAN routers using vManage. Intent-based CLI template refer to the command line interface configuration that are based on the vEdge device syntax. Using CLI templates, vManage enables pushing vEdge syntax-based commands to Cisco XE SD-WAN Routers in Cisco IOS XE Syntax.
Using vManage CLI templates significantly reduces the effort to configure feature templates.
Benefits of CLI Templates
-
You can reuse any Cisco vEdge-specific vManage feature templates for Cisco IOS XE Routers. When you create a device template using Cisco XE SDWAN Feature Templates, vManage displays the intent-based configuration (vEdge CLI syntax) and the corresponding device-based (Cisco XE SDWAN Routers) configuration. You can examine the intent-based configuration and repurpose that to create a separate CLI template for XE SDWAN routers.
-
You can make multiple changes to a CLI template in a single edit.
-
You can use a single configuration across multiple devices of the same device models. Variables can be used for rapid bulk configuration rollout with unique per-device settings. Common configurations like system-IP, site-id, hostname, IP addresses, and so on, can be defined as editable variables in the template and the same template can be attached to multiple devices.
-
You can define custom length for variables in CLI Templates.
-
You can use any existing IOS-XE device intent configuration as input for CLI template.
-
Content of a CLI template can be used across multiple IOS-XE device types (common CLIs like VPN, VPN interface, BGP, OSPF and so on).
Configuring CLI Templates in vManage
-
In vManage, select Configuration ► Templates.
-
In the Device tab, click Create Template.
-
From the Create Template drop-down, select CLI Template.
-
From the Device Model drop-down, select the type of device for which you are creating the template.
-
In the Template Name field, enter a name for the template. The name can be up to 128 characters and can contain only alphanumeric characters.
-
In the Template Description field, enter a description of the template. The description can be up to 2048 characters and can contain only alphanumeric characters.
-
The configuration of the CLI template must be intent-based. You can upload a configuration file using the Select a File field or copy and paste the CLI configuration. Following is an example of an intent-based CLI with variables.
system host-name {{hostname}} system-ip {{system_ip}} domain-id 1 site-id {{site_id}} port-offset 1 admin-tech-on-failure organization-name "XYZ" logging disk enable ! !
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.
-
To save the feature template, click Add.
Note |
See the Attach Devices to a Device Template section in this topic to know more about attaching a device to a template and reusing a template for multiple devices of the same device model. |
Sample Configurations for CLI Template
System Level Configuration
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
AAA Configuration - Authentication, authorization, and accounting (AAA) with RADIUS and TACACS+
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Logging configuration - Configures logging to either the local hard drive or a remote host
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Switch Port and VLAN configuration
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Cellular Configuration
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
BGP, OSPF, and EIGRP - Configures BGP, OSPF, and EIGRP Routing Protocols under Transport or Service VPN
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
VPN, Interface, and Tunnel Configuration for WAN and LAN interfaces
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Network Address Translation (NAT) over Direct Internet Access (DIA)
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
NAT64 Configuration
|
|
Multilink and T1/E1 - Configures T1/E1 Controller and Serial, Multilink Interfaces
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Local QoS Policy
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Security Policy (ZBFW, IPS/IDS, URL-Filtering) Configuration
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
Configuring NTP
CLI Template Configuration |
Configuration on the Device |
---|---|
|
|
IPv6 Configuration
CLI Template Configurartion |
Configuration on the Device |
---|---|
|
|