Skip to main content

Template

Location in GUI: Design » CLI Templates

Diagram

Classes

projects (catalyst_center.templates)

NameTypeConstraintMandatoryDefault Value
dayn_templatesList[dayn_templates]No

dayn_templates (catalyst_center.templates.projects)

NameTypeConstraintMandatoryDefault Value
nameStringYes
versionStringNo
descriptionStringNo
languageChoiceJINJA, VELOCITYYes
device_typesList[device_types]No
software_typeStringNo
software_versionStringNo
variablesList[variables]No
tagsListStringNo
management_device_ipsListStringNo
containing_templatesListStringNo
compositeBooleantrue, falseNo

device_types (catalyst_center.templates.projects.dayn_templates)

NameTypeConstraintMandatoryDefault Value
product_familyStringYes
product_seriesStringNo
product_typeStringNo

variables (catalyst_center.templates.projects.dayn_templates)

NameTypeConstraintMandatoryDefault Value
nameStringYes
field_nameStringNo
requiredBooleantrue, falseNo
data_typeChoiceSTRING, INTEGER, IPADDRESS, MACADDRESS, SECTIONDIVIDERYes
hint_textStringNo
additional_infoStringNo

Examples

DayN template example:

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

The content of the template must be stored in the templates/ directory inside a JINJA file, with the file name matching the template name:

access_list_template.j2

## Access List
ip access-list standard 20
10 permit 10.0.0.0 0.0.0.255
20 permit 20.0.0.0 0.0.0.255

Onboarding template example:

catalyst_center:
templates:
projects:
- name: Project_Onboarding
description: Project_Onboarding
onboarding_templates:
- name: onboarding_template
description: Onboarding Template
language: JINJA
composite: false
device_types:
- product_family: "Switches and Hubs"
product_series: "Cisco Catalyst 9300 Series Switches"
software_type: IOS-XE

Composite templates example:

catalyst_center:
templates:
projects:
- name: Project_DayN
description: Project_DayN
dayn_templates:
- name: ACL_COMPOSITE
description: ACL COMPOSITE
language: JINJA
composite: true
device_types:
- product_family: "Switches and Hubs"
product_series: "Cisco Catalyst 9300 Series Switches"
software_type: IOS-XE
containing_templates:
- ACL_41
- ACL_42

Example of Assigning DayN Template to Network Profile:

catalyst_center:
network_profiles:
switching:
- name: SDA SWITCH PROFILE
dayn_templates:
- ACL_COMPOSITE
sites:
- Global/United States/Golden Hills Campus/Sunset Tower
- Global/United States/Lakefront Tower/Windy City Plaza
- Global/United States/Oceanfront Mansion/Art Deco Mansion
- Global/United States/Desert Oasis Branch/Desert Oasis Tower