Skip to content

Tag

Location in GUI: Design » CLI Templates

NameTypeConstraintMandatoryDefault Value
cli_templatesClasscli_templatesNo

NameTypeConstraintMandatoryDefault Value
templatesClasstemplatesNo

NameTypeConstraintMandatoryDefault Value
tagsListtagsNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
descriptionStringNo

NameTypeConstraintMandatoryDefault Value
tagsListtagsNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
descriptionStringNo
system_tagBooleantrue, falseNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
descriptionStringNo

Tags provide a way to categorize and organize Templates and Devices in Catalyst Center. Tags can be assigned to templates for filtering and grouping, and to devices for targeted template deployment. Use this section when the tag is associated with templates. To define tags that are only used for devices (decoupled from the templates structure), use Inventory Tags instead. Applicable to both SDA fabric and non-fabric deployments.

Note: In a multistate deployment, all devices that carry a given tag must be managed by one Terraform state. The tag itself is created by the global state, but each state assigns the tag to its own devices, and on the next apply it removes the devices of the other states from the tag. The states then flip-flop on every apply, with no warning.

Both cli_templates.tags and inventory.tags define controller tags. If the same tag name appears in both collections, the inventory definition takes precedence.

Example-1: Basic Tag with Name and Description

Section titled “Example-1: Basic Tag with Name and Description”

Basic tag creation with name and description for organizing and categorizing templates and devices in Catalyst Center.

catalyst_center:
cli_templates:
tags:
- name: DayN_Tag
description: DayN_Tag

Example-2: Tag Assigned to a Day-N Template

Section titled “Example-2: Tag Assigned to a Day-N Template”

Template tag assignment demonstrating how to apply tags to Day-N templates for organizational purposes, enabling filtering and management of access list templates targeting Catalyst 9300 series switches.

catalyst_center:
cli_templates:
projects:
- name: Project_DayN
description: Project_DayN
dayn_templates:
- name: access_list_template
description: Access List Template
language: JINJA
composite: false
device_types:
- product_family: Switches and Hubs
product_series: Cisco Catalyst 9300 Series Switches
software_type: IOS-XE
tags:
- DayN_Tag

Example-3: Multiple Tags Assigned to a Network Device

Section titled “Example-3: Multiple Tags Assigned to a Network Device”

Device tag assignment showing how to apply multiple tags to network devices for inventory management, enabling grouping and filtering of edge nodes in fabric deployments.

catalyst_center:
inventory:
devices:
- name: EDGE02
fqdn_name: EDGE02.cisco.eu
device_ip: 198.18.130.2
pid: C9KV-UADP-8P
state: PROVISION
device_role: ACCESS
site: Global/Poland/Krakow/Bld A
tags:
- TAG1
- TAG2
fabric:
fabric_sites:
- name: Global/Poland/Krakow
fabric_devices:
- name: EDGE02
fabric_roles:
- EDGE_NODE

Tags provide a way to categorize and organize Templates and Devices in Catalyst Center. Tags can be assigned to templates for filtering and grouping, and to devices for targeted template deployment. Use this section when the tag is associated with templates. To define tags that are only used for devices (decoupled from the templates structure), use Inventory Tags instead. Applicable to both SDA fabric and non-fabric deployments.

Example-1: Basic Tag with Name and Description

Section titled “Example-1: Basic Tag with Name and Description”

Basic tag creation with name and description for organizing and categorizing templates and devices in Catalyst Center.

catalyst_center:
templates:
tags:
- name: DayN_Tag
description: DayN_Tag

Example-2: Tag Assigned to a Day-N Template

Section titled “Example-2: Tag Assigned to a Day-N Template”

Template tag assignment demonstrating how to apply tags to Day-N templates for organizational purposes, enabling filtering and management of access list templates targeting Catalyst 9300 series switches.

catalyst_center:
templates:
projects:
- name: Project_DayN
description: Project_DayN
dayn_templates:
- name: access_list_template
description: Access List Template
language: JINJA
composite: false
device_types:
- product_family: "Switches and Hubs"
product_series: "Cisco Catalyst 9300 Series Switches"
software_type: IOS-XE
tags:
- DayN_Tag

Example-3: Multiple Tags Assigned to a Network Device

Section titled “Example-3: Multiple Tags Assigned to a Network Device”

Device tag assignment showing how to apply multiple tags to network devices for inventory management, enabling grouping and filtering of edge nodes in fabric deployments.

catalyst_center:
inventory:
devices:
- name: EDGE02
fqdn_name: EDGE02.cisco.eu
device_ip: 198.18.130.2
pid: C9KV-UADP-8P
state: PROVISION
device_role: ACCESS
site: Global/Poland/Krakow/Bld A
fabric_site: Global/Poland/Krakow
fabric_roles:
- EDGE_NODE
tags:
- TAG1
- TAG2