Managing Templates

A template is a container of configurations, which can be applied to a target such as a device or a router.

Cisco VTS supports the following template types:
  • Overlay Templates—The following types of overlay templates are supported.
    • Route templates—A route template is a template that lets you configure static routes and route targets. This template can be applied to a tenant or a router. When it is applied to a tenant, all the routers within that tenant inherit the static route and route target configuration. When it is applied to a router, it overrides the route template that was inherited from the tenant. It is supported in a set up that has only Cisco ASR 9000 Series Aggregation Services Routers as DCI.

      Only integrated DCI mode is supported. VRF-peering mode is not supported.

    • L3 Service Extension templates—An L3 Service Extension template allows you to extend Cisco VTS Layer 3 service configuration on routers or tenants.

      The configuration you define in the service extension template, along with the out-of-the-box Cisco VTS L3 configuration, will be pushed to the device to get the combined configuration on the device. Service extension templates do not allow you to configure any parameter that Cisco VTS configures out-of-the-box.

      One device can have multiple templates. One template can be attached to multiple devices. The admin has to ensure that the templates do not have conflicting configuration.

      Currently, L3 Service Extension templates are supported for the following platforms:
      • Cisco Nexus 5000 series
      • Cisco Nexus 9000 series
      • Cisco Nexus 7000 series
      • Cisco ASR 9000 series

      You can modify any L3 service related configuration that is pushed on Cisco ASR 9000 series devices in integrated mode (DC gateway and DCI is the same physical box) or VRF peering mode. In VRF peering mode, Cisco Nexus 9000 series device has to be configured as te border leaf. You must have an external network, and the External network should be set as the Router gateway. If you do not have the external gateway set, the template will be attached to the router, but configuration will not be pushed. After you have your external network as the router gateway, it will push the configuration.

    • L2 Service Extension templates—An L2 Service Extension template allows you to extend Cisco VTS Layer 2 service configuration.
      The creation of L2 SE templates is done by authoring configuration that are specific to a device type. You can modify the L2 configuration that is attached to the network. The configuration is for the L2 construct which can be applied to the virtual interface. Following L2 service configuration templates are supported:
  • Underlay template—Underlay templates enables you to configure the Day zero configuration on underlay devices via the VTS UI.

    Note


    If devices templates overwrite any VTS service configurations, these configurations would stay even after the device templates are detached/removed. To reinstate the service configurations, you will need to redeploy the services.


The overlay template can be used with multiple routers or tenants You can either associate the template while you create the router or tenant, or associate a template to a tenant or router you have already created, while you edit the tenant or router.

When you detach the overlay template from the tenant, it cleans up the configuration on the device.


Note


For route templates, you can have only one instance of a template type per tenant/router. For example, let the template types be Temp A and Temp B, and the instance of Temp A be Ins A and that of Temp B be Ins B. Now, Ins A and Ins B can be applied to a tenant/router. However, Ins A and Ins A’, where Ins A’ is a second instance of Temp A, cannot be applied at the same time on the tenant/router.


The following sections provide more details about working with templates:

Creating Route Templates

To create templates:


    Step 1   Go to Templates > Overlay Template Management. The Templates / Overlay Template Management page appears.
    Step 2   Click +. The Create Template page appears.
    Step 3   Enter a name for the template in the Template Name field. Only alphabets, numbers, and special characters ., _ and - are allowed. The maximum character limit is 128.
    Step 4   Enter a description for the template, in the Description field. This is optional.
    Step 5   Select the template type from the Template Type. For route templates, select Route.
    Step 6   Click Add Configuration. The New Template page appears.
    Step 7   Enter a route target seed. This can be an integer value in the range of 1-16777215. Route Target with seed is pushed to DCI, and Leaf if eBGP is enabled.
    Step 8   Enable or Disable the Auto Route Target option. By default, it is enabled. See Disabling Auto Route Target Configuration for details.
    Step 9   Add Static Routes. See Adding Static Routes for details.
    Step 10   Add Route Targets. See Adding Route Targets for details.
    Step 11   Click Save. The template is saved and listed in the Template Management page.

    Adding Static Routes

    You can add static routes to a template while you create the template.


      Step 1   In the Template Management page, while you create or modify a template, click the Static Route tab.
      Step 2   Click +. The Add Static Route(s) pop-up appears.
      Step 3   Add a Destination IP address and netmask.
      Step 4   Add the Next Hop IP address and netmask. Netmask is optional.
      Step 5   Click Add. The static routes get added to the template.

      You can add five static routes at a time.


      Adding Route Targets

      You can add route targets to be imported / exported to the leafs or DCI.

      Adding Fabric Internal Route Targets

      To add Fabric Internal route targets:

        Step 1   Click Fabric Internal RT tab.
        Step 2   If you want to use system defined RT, choose Auto RT- System Defined from the dropdown. Else, choose Auto RT - Custom. You must add at least four custom route targets.
        Step 3   Click +. The Add Route Target(s) pop-up appears.
        Note    You can add five route targets at a time.

        Enter the route targets to be shared across the different VRFs. The valid route target formats are:

        • ASN2:NN4

        • ASN4:NN2

        • IPv4:NN2

        Where:
        • NN2 and ASN2 has a range of 1-65535

        • NN4 and ASN4 has a range of 1-4294967295

        • IPv4 is an IPv4 address in the dotted decimal format

        Step 4   Specify whether route targets are to be imported or exported. To do this, select the desired value from the Direction drop-down.
        Step 5   Specify following from the Type drop-down:
        • Internal— To import / export on leafs.

        • Stitching— To import / export on DCI.

        Step 6   Click Add. You can add five route target at once.

        Adding Fabric External Route Targets

        To add Fabric Eternal route targets to import /export route targets to the DCI:


          Step 1   Click Fabric External RT tab.
          Step 2   If you want to use system defined RT, choose Auto RT- System Defined from the dropdown. Else, choose Auto RT - Custom. You must add at least two custom route targets.
          Step 3   Click +. The Add Route Target(s) pop-up appears.
          Note    You can add five route targets at a time.

          Enter the route targets to be shared across the different VRFs. The valid route target formats are:

          • ASN2:NN4

          • ASN4:NN2

          • IPv4:NN2

          Where:
          • NN2 and ASN2 has a range of 1-65535

          • NN4 and ASN4 has a range of 1-4294967295

          • IPv4 is an IPv4 address in the dotted decimal format

          Step 4   Specify whether route targets are to be imported or exported. To do this, select the desired value from the Direction drop-down.

          The type will be Fabric External, by default

          Step 5   Click Add.

          Disabling Auto Route Target Configuration

          To enable or disable automatic route target configuration, use the Auto Route Target toggle switch in the New Template screen while you create route templates. By default, Auto Route Target (RT) is enabled. When this is enabled, Cisco VTS adds route target configurations automatically, in addition to any static / manual route targets you have defined in route template, while the template configuration is pushed to the VTEPS.
          If you choose to disable Auto Route Target, ensure that:
          1. At least one import route target and one export route target are defined for internal devices (that is, for leaf switches controlled by Cisco VTS) in the same route template where auto RT gets disabled.
          2. When a DCI is present in Admin Domain, and you choose to disable Auto Route Target, ensure that:
            • At least one import route target and one export route target are defined for external devices.

            • At least one import route target and one export route target are defined for "both".

          This is to make sure that when auto RT is disabled, the static route targets defined in the template (which will then be pushed to the DCI) are sufficient to enable the DCI to communicate with the TORs properly.

          Whenever you enable Auto Route Target again the route targets created using the route target seed (if provided) or ASN# will be pushed to devices. In addition, the RT seed textbox will be enabled again.

          Creating L3 Extension Templates

          To create L3 Extension templates:


            Step 1   Go to Templates > Overlay Template Management. The Templates / Overlay Template Management page appears.
            Step 2   Click +. The Create Template page appears.
            Step 3   Enter a name for the template in the Template Name field. Only alphabets, numbers, and special characters ., _ and - are allowed. The maximum character limit is 128.
            Step 4   Enter a description for the template, in the Description field. This is optional.
            Step 5   Choose L3 Extension as the template type.
            Step 6   Choose the Device Platform. Currently, the following platforms are supported:
            • Cisco Nexus 9000 Series

            • Cisco Nexus 7000 Series

            • Cisco ASR 9000 Series

            Step 7   Click Add Configuration to add configuration to the template. The Author Template window appears.
            Step 8   Click Configuration icon to get the Add Configuration menu. The flyout menu displays all the configuration options that are available at the root level. You can search for the desired configuration in the Search field.
            Note   

            Configuration options available are limited to configuration that Cisco VTS does not provide out of the box. The User Interface(UI) is schema driven and shows the configuration tree based on the device platform selected and the service extension template type, for example, L3 Service Extension Template.

            Step 9   Choose the desired configuration. The configuration you chose gets added as a child node in the Config tree, on the left pane.

            You may add further configuration to the node that you have added by clicking the Configuration icon. If you want to delete the configuration, click the delete (X) icon.

            For configuration items which can take multiple instances, the Add Instance button appears in the authoring pane. You can add an instance by clicking Add Instance. Click Add after you add the configuration for the instance.

            Note   

            For certain configurations, some of the options that are available for selection have the %v suffix. These are system variables. See Supported System Variables for details.

            Step 10   Click Save Template.

            The template gets added to the Template Management screen. You can click on the template to get a summary of the template, in the Template Summary page. You can expand the Config node to view the template configuration. You can edit the template from the Summary screen, by clicking Edit Template Config.


            Supported System Variables

            For certain configurations, some of the options that are available for selection have the %v suffix. The %v suffix denotes that it is a system variable. When the Cisco VTS comes across such a variable in the template, it translates that into the value that it had configured for that device.

            Supported variables in Cisco Nexus 5000, Cisco Nexus 7000, and Cisco Nexus 9000 Series for L3 Service Extension

            • BGP AS number

            • VRF name

            • NVE Interface

            • Host side SVI

            • Fabric SVI

            Supported variables in Cisco Nexus 9000 Series for L2 Service Extension

            • VLAN ID

            Supported variables in Cisco ASR 9000 Series for L3 Service Extension

            • VRF Name

            • BGP AS Number

            • Neighbor address

            • Bridge Group

            • Bridge Domain Name

            • BVI

            • NVE interface

            Supported variables in Cisco ASR 9000 Series for L2 Service Extension

            • Bridge Group

            • Bridge Domain Name

            • EVI

            • NVE interface

            • VNI

            Editing Templates

            You can modify a template that you have created.


              Step 1   Go to Templates > Template Management. The Templates / Template Management page lists all the templates you have created.
              Step 2   Select the check box corresponding to the template you need to edit, and click the edit icon.
              Note   

              You can also edit a template from the Template Summary screen. Click Edit Template Config button to edit a template.

              Based on the template type, the edit template page is displayed. For a Route template, the edit page for that route template is displayed. For a L3 Service Extension templates, the Edit Template page is displayed. You may change the Template Description, if required. Then click Edit Configuration to modify the service extension configuration.
              Step 3   Make the desired changes, then click Save.

              Copying a Template

              You can copy a template and save it with a different name. You can also modify the parameters while you copy.


                Step 1   Go to Templates > Template Management. The Templates / Template Management page lists all the templates you have created.
                Step 2   Select the check box corresponding to the template you need to copy, and click the copy icon.
                Step 3   Modify the details if required, then click Save.

                Deleting Templates

                You can delete a template that you have created.

                Note


                You can delete a template only if it is not attached to either a tenant or router. If it is attached to a tenant or router, an error is displayed when you try to delete. You need to detach the template from tenant or router before deleting the template.

                  Step 1   Go to Templates > Template Management. The Templates / Template Management page lists all the templates you have created.
                  Step 2   Select the check box corresponding to the template you need to delete, and click the X.

                  The Delete pop-up appears.

                  Step 3   Click Delete to delete the template.

                  Attaching Templates to Tenants

                  You can attach template to tenants when you create or edit tenants.

                  Attaching Template while Adding Tenants

                  You can attach templates to a Tenant while you add a tenant.


                    Step 1   When you are adding a new tenant, click the find icon in the Template field. The Select Template pop-up appears.
                    Step 2   Select the template type, then select the desired template. If you want to create a new template and attach that, click Create New Template.
                    Step 3   Click Select Devices(s) to select the devices.
                    Step 4   Click Apply Template(s).
                    Step 5   Click Save.

                    Attaching Template while Editing a Tenant

                    You can also modify an existing tenant to attach a template.

                      Step 1   Go to Tenants > Tenant Management. The Tenants / Tenant Management page lists all the tenants you have created.
                      Step 2   Select the check box corresponding to the tenant you need to modify, then click the edit icon.
                      Step 3   Click the find icon in the Template field. The Select Template pop-up appears.
                      Step 4   Select the template type from the Template Type drop down list.
                      Note   

                      If you want to create a new template and attach that, click Create New Template. See Creating L3 Extension Templates for details about how to create a new template.

                      Step 5   Select the desired template. Then click Select Device(s), to select the devices.
                      Step 6   From the Select Device(s) popup window, select the devices, then click Apply Template(s)..
                      Step 7   Click Save in the Edit Tenant page.

                      Detaching Template from Tenants

                      You can detach a template that you had attached to a Tenant. When you detach a template from a tenant, all the template configuration is removed from the routers that inherited the template.

                      To detach the template:


                        Step 1   Go to Tenants > Tenant Management. The Tenants / Tenant Management page lists all tenants.
                        Step 2   Select the tenant from which you want to detach the template, then click the Edit icon.
                        Step 3   Click the Find icon in the Templates field. The Select Template popup is displayed.
                        Step 4   Check the check box.
                        Step 5   Click Save.

                        Attaching Templates to Routers

                        You can attach templates to routers while adding a router or while modifying an existing router. By default, router inherits the template from the tenant. You can override an inherited template while you create or modify a router, by selecting a different template, or creating a new template and attaching to the router.


                        Note


                        The configuration is pushed to the device only when Port Attach is done. If a router is created and template is applied to the tenant or router, but port is not attached, then the template configuration is not pushed. See Creating a Network using Cisco VTS GUI for details about attaching port.

                        Attaching Templates while Adding Routers

                        While you add the router, by default, the router inherits the template from the tenant. The template field displays <template name> (Inherited). You may inherit the template from the tenant or may chose to select a template of your choice.


                          Step 1   Click the Find icon in the Template selection box. The Select Template popup is displayed.
                          Step 2   Uncheck the Inherit from Tenant check box. The popup lists all the available templates.
                          Step 3   Select the desired template, then click Apply. The template gets applied to the router.

                          If you want to create a new template, click Create New Template. You will be redirected to the Templates > Template Management > New Template page. After you create the new template, you must select the new template from the Select Template pop up, as described in Step 2 and 3.

                          Step 4   Click Save after you complete the router creation procedure.

                          Attaching Template while Editing a Router

                          You can attach a template to a router while you edit a router.


                            Step 1   Go to Overlay > Router. The Overlay / Router page lists all the routers.
                            Step 2   Select the Router that you need to modify, then click the edit icon. The template field lists the template that the router has inherited from the tenant.
                            Step 3   Click the Find icon in the Template selection box. The Select Template popup is displayed.
                            Step 4   Uncheck the Inherit from Tenant check box. The popup lists all the available templates.
                            Step 5   Select the template type from the Template Type drop down list.
                            Step 6   Select the desired template, then click Select Device(s)

                            If you want to create a new template, click Create New Template. You will be redirected to the Templates > Template Management > New Template page. After you create the new template, you must select the new template from the Select Template pop up, as described in Step 2 and 3.

                            Step 7   From the Select Devices popup window, select the device(s) on which you want to apply the template, click Apply Template(s)..
                            Note    To detach a template from a device, in the same flow, you may uncheck the checkbox for the device from which you want to detach the template.
                            Step 8   Click Save.

                            Creating L2 Extension Templates

                            To create L2 Extension templates:


                              Step 1   Go to Templates > Overlay Template Management. The Templates / Overlay Template Management page appears.
                              Step 2   Click +. The Create Template page appears.
                              Step 3   Enter a name for the template in the Template Name field. Only alphabets, numbers, and special characters., _ and - are allowed. The maximum character limit is 128.
                              Step 4   Enter a description for the template, in the Description field. This is optional.
                              Step 5   Choose L2 Extension as the template type.
                              Step 6   Choose the Device Platform.
                              Step 7   Click Add Configuration to add configuration to the template. The Author Template window appears.
                              Step 8   Click Configuration icon to get the Add Configuration menu. The flyout menu displays all the configuration options that are available at the root level. You can search for the desired configuration in the Search field or configuration items which can take multiple instances, the Add Configurations pane appears in the authoring pane.
                              Note   

                              Configuration options available are limited to configuration that Cisco VTS does not provide out of the box. The User Interface(UI) is schema driven and shows the configuration tree based on the device platform selected and the service extension template type, for example, L2 Extension Template. For this release, only configurations under vlan > configuration and vlan > vlan-list are qualified.

                              Step 9   Choose the desired configuration. The configuration you chose gets added as a child node in the Config tree, on the left pane.
                              Step 10   Click Add Instance to add an instance. New Instance gets added on the left pane.

                              For configuration items which can take multiple instances, the Add Instance button appears in the authoring pane. Click Add after you add the configuration for the instance.

                              Note   

                              For certain configurations, some of the options that are available for selection have the %v suffix (for example, %vVLAN_ID). The %v suffix denotes that it is a system variable. Here, the vlan-id gets set-up once you associate this particular template at a network level.

                              Step 11   Click Save Template, after you finish adding the desired configuration.

                              Important Notes—L2 QoS Template

                              Review the section below before you create QoS template:

                              • Policy map has to be created on the devices as part of Day Zero configuration or configured using underlay templates. Only those devices with the service policy map configured will be displayed in the template association UI.
                              • Under the vlan configuration Cisco Nexus 9000 supports only service policy with type qos. Both input and output service policies may be configured in the same template.

                              • While applying L2 QoS templates, only those devices with the service policy map configured will be shown. The policy map has to be configured on the device for the device to be displayed here.

                              Important Notes—VPLS Template

                              Review the section below before you create a VPLS template:

                              • Ensure that the necessary Day Zero configuration is complete on the DCI. See Cisco VTS Day Zero Configuration Examples document for details.
                              • Create the Admin Domain. Make sure you link the L2GW and DCGW, which is required for L2VNI. See Creating an Admin Domain for details.
                              • Create the DCI Interconnect profile with the specific details. See Creating DCI Interconnect Profiles for details.
                              • Associate the DCI Interconnect profile to the DCI in the Admin Domain under DCI Interconnect profile tab.
                              • Create the L2 Extended Network with an EVI ID assigned to the Network under L2VPN tab. See Creating a Network using Cisco VTS GUI for details.
                              • Make sure the subnets and port attach is done for the Network.
                              • You can create a template with just PW (pseudo wire) configuration, or just Access VFI configuration, or can have both configurations in one template. Make sure that you enter correct PW and Acess VFI under l2vpn, in the DC that is not managed by VTS.
                              • The following are supported as system variables in VPLS templates:

                                • Bridge Domain Name
                                • Bridge Group Name
                                • Interface NVE ID
                                • EVI ID

                              Associating L2 Extension Templates

                              You can attach an L2 Extension template while you create a network, or to an existing network. To attach an L2 Extension template:


                                Step 1   Click Overlay > Network. The Overlay > Network page is displayed.
                                Step 2   Select the network for which you want to attach the L2 extension template, then click Edit icon.
                                Step 3   Click the Template selection search box. The Select Templates pop up displays a list of all L2 extension templates you have created.
                                Step 4   Select the desired template(s). Click Next. You may also create a new template, using the Create New Template button.

                                The Select Devices popup appear. You may choose to apply the selected templates to all of the devices, or choose specific devices on which you may want to apply the template.

                                Note    For an L2 QoS template, if Service Policy is defined in the template, then only the devices that have the same policy map configured will be displayed for selection. If no Service Policy is provided in the L2 QoS template, then all the devices that have the matching platform type will be available for template application.
                                Step 5   Select the device(s), then click Apply Template(s).
                                Step 6   Perform a port attach to get the template pushed to the device.

                                Creating Underlay Templates

                                To create Underlay templates:


                                  Step 1   Go to Templates > Device Template Management.

                                  The Templates / Device Template Management page appears.

                                  Step 2   Click +. The Create Template page appears.
                                  Step 3   Enter a name for the template in the Template Name field. Only alphabets, numbers, and special characters., _ and - are allowed. The template name requires at least one alphabet or number. The maximum character limit is 128.
                                  Step 4   Enter a description for the template, in the Description field. This is optional.
                                  Step 5   Choose the Device Platform. Currently, the following platforms are supported:
                                  • Cisco ASR 9000 Series

                                  • Cisco Nexus 7000 Series

                                  • Cisco Nexus 9000 Series

                                  Step 6   Click Add Configuration to add configuration to the template.

                                  The Author Template window appears.

                                  Step 7   Click Configuration icon to get the Add Configuration menu. The flyout menu displays all the configuration options that are available at the root level. You can search for the desired configuration in the Search field.
                                  Step 8   Choose the desired configuration. The configuration you chose gets added as a child node in the Config tree, on the left pane.

                                  You may add further configuration to the node that you have added by clicking the Configuration icon. If you want to delete the configuration, click the delete (X) icon.

                                  For configuration items which can take multiple instances, the Add Instance button appears in the authoring pane. You can add an instance by clicking Add Instance. Click Add after you add the configuration for the instance.

                                  Note   
                                  Step 9   Click Save Template.

                                  The template gets added to the Template Management screen. You can click on the template to get a summary of the template, in the Template Summary page. You can expand the Config node to view the template configuration. You can edit the template from the Summary screen, by clicking Edit icon.


                                  Associating Devices to Underlay Template

                                  To attach or detach an Underlay template from a device:


                                    Step 1   Go to Inventory > Network Inventory. The Inventory / Network Inventory page appears.
                                    Step 2   Click Device Template.
                                    Note   

                                    You can filter templates by Device Platforms.

                                    Step 3   Click the Edit adjacent to template name you want to edit.

                                    The Associate Devices for <template> page appears where you can see the devices attached or detached from the underlay template.

                                    Step 4   Check or uncheck Devices(s) to attach or detach the devices as per your requirement.
                                    Step 5   Click Done.

                                    The devices are successfully added or removed from the underlay template.

                                    Note   

                                    You can filter devices by associated and non-associated devices.