Tag
Catalyst CenterLocation in GUI:
Design » CLI Templates
Diagram
Section titled “Diagram”Diagram
Section titled “Diagram”Diagram
Section titled “Diagram”Classes
Section titled “Classes”catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| cli_templates | Class | cli_templates | No |
catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| templates | Class | templates | No |
cli_templates (catalyst_center)
Section titled “cli_templates (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| tags | List | tags | No |
tags (catalyst_center.cli_templates)
Section titled “tags (catalyst_center.cli_templates)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| description | String | No |
templates (catalyst_center)
Section titled “templates (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| tags | List | tags | No |
tags (catalyst_center.templates)
Section titled “tags (catalyst_center.templates)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| description | String | No | ||
| system_tag | Boolean | true, false | No |
tags (catalyst_center.templates)
Section titled “tags (catalyst_center.templates)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| description | String | No |
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.
Examples
Section titled “Examples”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_TagExample-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_TagExample-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_NODETags 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.
Examples
Section titled “Examples”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_TagExample-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_TagExample-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