Port Assignment
Catalyst CenterLocation in GUI:
Provision » SD-Access » Fabric Sites » [Site Name] » Port Assignment
Diagram
Section titled “Diagram”Diagram
Section titled “Diagram”Classes
Section titled “Classes”catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| fabric | Class | fabric | No |
catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| inventory | Class | inventory | No |
fabric (catalyst_center)
Section titled “fabric (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| fabric_sites | List | fabric_sites | No |
fabric_sites (catalyst_center.fabric)
Section titled “fabric_sites (catalyst_center.fabric)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| fabric_devices | List | fabric_devices | No |
fabric_devices (catalyst_center.fabric.fabric_sites)
Section titled “fabric_devices (catalyst_center.fabric.fabric_sites)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| port_ | Class | port_ | No |
port_assignments (catalyst_center.fabric.fabric_sites.fabric_devices)
Section titled “port_assignments (catalyst_center.fabric.fabric_sites.fabric_devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interfaces | List | interfaces | No |
interfaces (catalyst_center.fabric.fabric_sites.fabric_devices.port_assignments)
Section titled “interfaces (catalyst_center.fabric.fabric_sites.fabric_devices.port_assignments)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interface_name | String | No | ||
| interfaces_ | String | Regex: ^[A-Za-z] | No | |
| interface_ | String | No | ||
| connected_ | Choice | USER_DEVICE, ACCESS_POINT, TRUNKING_DEVICE, AUTHENTICATOR_, SUPPLICANT_ | Yes | |
| data_vlan_name | String | No | ||
| voice_vlan_name | String | No | ||
| security_ | String | No | ||
| authenticate_ | Choice | No Authentication, Open Authentication, Closed Authentication, Low Impact | No |
inventory (catalyst_center)
Section titled “inventory (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No |
devices (catalyst_center.inventory)
Section titled “devices (catalyst_center.inventory)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| port_ | List | port_ | No |
port_assignments (catalyst_center.inventory.devices)
Section titled “port_assignments (catalyst_center.inventory.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interface_name | String | No | ||
| interfaces_ | String | Regex: ^[A-Za-z] | No | |
| interface_ | String | No | ||
| connected_ | Choice | USER_DEVICE, ACCESS_POINT, TRUNKING_DEVICE, AUTHENTICATOR_, SUPPLICANT_ | Yes | |
| data_vlan_name | String | No | ||
| voice_vlan_name | String | No | ||
| security_ | String | No | ||
| authenticate_ | Choice | No Authentication, Open Authentication, Closed Authentication, Low Impact | No |
Port Assignments define how physical switch ports on fabric edge nodes connect endpoints to the SD-Access fabric. Each assignment specifies the connected device type, Anycast Gateway (data VLAN), voice VLAN, security group, and authentication template. Ports are assigned per device within a Fabric Site. This resource is SDA fabric only.
Note: A port with
connected_device_type: AUTHENTICATOR_SWITCHneedsauthenticate_template_name: Closed Authentication(NCHS20146) and must not set a data VLAN, voice VLAN or security group (NCHS20147). Catalyst Center does not supportAUTHENTICATOR_SWITCHports on Catalyst 9000 virtual switches (C9KV,NCSO30020). Port assignment errors like these can be reported as warnings while the apply still succeeds, so check the next plan.
Examples
Section titled “Examples”Example-1: Single Interface Port Assignment
Section titled “Example-1: Single Interface Port Assignment”This example demonstrates how to configure a single port assignment on an SD-Access fabric edge node. Port assignments define how physical switch ports connect endpoints to the fabric, specifying the connected device type, VLAN assignment, security group, and authentication template.
catalyst_center: inventory: devices: - name: EDGE01 fqdn_name: EDGE01.cisco.eu device_ip: 198.18.130.1 pid: C9KV-UADP-8P state: PROVISION device_role: ACCESS site: Global/Poland/Krakow/Bld A fabric: fabric_sites: - name: Global/Poland/Krakow fabric_devices: - name: EDGE01 fabric_roles: - EDGE_NODE port_assignments: interfaces: - interface_name: GigabitEthernet1/0/2 interface_description: User workstation port connected_device_type: USER_DEVICE security_group_name: Employees data_vlan_name: 192_168_100_0-Campus authenticate_template_name: No AuthenticationExample-2: Interface Range Port Assignment
Section titled “Example-2: Interface Range Port Assignment”This example shows how to configure port assignments using an interface range, which allows applying the same configuration to multiple consecutive ports efficiently. This is useful for bulk provisioning of access ports.
The interface range format follows the pattern InterfaceType<slot>/<module>/<start_port>-<slot>/<module>/<end_port> (e.g., GigabitEthernet1/0/3-1/0/5 covers ports 3, 4, and 5).
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: fabric_sites: - name: Global/Poland/Krakow fabric_devices: - name: EDGE02 fabric_roles: - EDGE_NODE port_assignments: interfaces: - interfaces_range: GigabitEthernet1/0/3-1/0/5 interface_description: Conference room ports connected_device_type: USER_DEVICE security_group_name: Employees data_vlan_name: 192_168_100_0-Campus authenticate_template_name: No AuthenticationExample-3: Comprehensive Port Assignments
Section titled “Example-3: Comprehensive Port Assignments”This example demonstrates a comprehensive port assignment configuration with multiple port types on a single edge device, including user devices with voice and data VLANs, access points, and trunking devices.
catalyst_center: inventory: devices: - name: EDGE03 fqdn_name: EDGE03.cisco.eu device_ip: 198.18.130.3 state: PROVISION device_role: ACCESS site: Global/Enterprise/Building_C fabric: fabric_sites: - name: Global/Enterprise fabric_devices: - name: EDGE03 fabric_roles: - EDGE_NODE port_assignments: interfaces: - interfaces_range: GigabitEthernet1/0/1-1/0/20 interface_description: User workstations - Floor 3 connected_device_type: USER_DEVICE data_vlan_name: EMPLOYEES voice_vlan_name: VOICE security_group_name: Employees authenticate_template_name: Closed Authentication - interface_name: GigabitEthernet1/0/21 interface_description: Wireless AP - Floor 3 connected_device_type: ACCESS_POINT data_vlan_name: AP_POOL authenticate_template_name: No Authentication - interface_name: GigabitEthernet1/0/23 interface_description: Network printer connected_device_type: USER_DEVICE data_vlan_name: PRINTERS security_group_name: Printers authenticate_template_name: Open Authentication - interface_name: GigabitEthernet1/0/24 interface_description: Legacy switch uplink connected_device_type: TRUNKING_DEVICE data_vlan_name: INFRASTRUCTURE authenticate_template_name: No AuthenticationPort Assignments define how physical switch ports on fabric edge nodes connect endpoints to the SD-Access fabric. Each assignment specifies the connected device type, Anycast Gateway (data VLAN), voice VLAN, security group, and authentication template. Ports are assigned per device within a Fabric Site. This resource is SDA fabric only.
Examples
Section titled “Examples”Example-1: Single Interface Port Assignment
Section titled “Example-1: Single Interface Port Assignment”This example demonstrates how to configure a single port assignment on an SD-Access fabric edge node. Port assignments define how physical switch ports connect endpoints to the fabric, specifying the connected device type, VLAN assignment, security group, and authentication template.
---catalyst_center: inventory: devices: - name: EDGE01 fqdn_name: EDGE01.cisco.eu device_ip: 198.18.130.1 pid: C9KV-UADP-8P state: PROVISION device_role: ACCESS site: Global/Poland/Krakow/Bld A fabric_site: Global/Poland/Krakow fabric_roles: - EDGE_NODE port_assignments: - interface_name: GigabitEthernet1/0/2 interface_description: "User workstation port" connected_device_type: USER_DEVICE security_group_name: Employees data_vlan_name: "192_168_100_0-Campus" authenticate_template_name: "No Authentication"Example-2: Interface Range Port Assignment
Section titled “Example-2: Interface Range Port Assignment”This example shows how to configure port assignments using an interface range, which allows applying the same configuration to multiple consecutive ports efficiently. This is useful for bulk provisioning of access ports.
The interface range format follows the pattern InterfaceType<slot>/<module>/<start_port>-<slot>/<module>/<end_port> (e.g., GigabitEthernet1/0/3-1/0/5 covers ports 3, 4, and 5).
---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 port_assignments: - interfaces_range: "GigabitEthernet1/0/3-1/0/5" interface_description: "Conference room ports" connected_device_type: USER_DEVICE security_group_name: Employees data_vlan_name: "192_168_100_0-Campus" authenticate_template_name: "No Authentication"Example-3: Comprehensive Port Assignments
Section titled “Example-3: Comprehensive Port Assignments”This example demonstrates a comprehensive port assignment configuration with multiple port types on a single edge device, including user devices with voice and data VLANs, access points, and trunking devices.
---catalyst_center: inventory: devices: - name: EDGE03 fqdn_name: EDGE03.cisco.eu device_ip: 198.18.130.3 state: PROVISION device_role: ACCESS site: Global/Enterprise/Building_C fabric_site: Global/Enterprise fabric_roles: - EDGE_NODE port_assignments: # User workstation ports with voice and data - interfaces_range: "GigabitEthernet1/0/1-1/0/20" interface_description: "User workstations - Floor 3" connected_device_type: USER_DEVICE data_vlan_name: "EMPLOYEES" voice_vlan_name: "VOICE" security_group_name: Employees authenticate_template_name: "Closed Authentication" # Access Point ports - interface_name: GigabitEthernet1/0/21 interface_description: "Wireless AP - Floor 3" connected_device_type: ACCESS_POINT data_vlan_name: "AP_POOL" authenticate_template_name: "No Authentication" # Printer port - interface_name: GigabitEthernet1/0/23 interface_description: "Network printer" connected_device_type: USER_DEVICE data_vlan_name: "PRINTERS" security_group_name: Printers authenticate_template_name: "Open Authentication" # Uplink to legacy switch - interface_name: GigabitEthernet1/0/24 interface_description: "Legacy switch uplink" connected_device_type: TRUNKING_DEVICE data_vlan_name: "INFRASTRUCTURE" authenticate_template_name: "No Authentication"