Skip to content

Port Assignment

Location in GUI: Provision » SD-Access » Fabric Sites » [Site Name] » Port Assignment

NameTypeConstraintMandatoryDefault Value
fabricClassfabricNo

NameTypeConstraintMandatoryDefault Value
inventoryClassinventoryNo

NameTypeConstraintMandatoryDefault Value
fabric_sitesListfabric_sitesNo

NameTypeConstraintMandatoryDefault Value
fabric_devicesListfabric_devicesNo

fabric_devices (catalyst_center.fabric.fabric_sites)

Section titled “fabric_devices (catalyst_center.fabric.fabric_sites)”
NameTypeConstraintMandatoryDefault Value
port_assignmentsClassport_assignmentsNo

port_assignments (catalyst_center.fabric.fabric_sites.fabric_devices)

Section titled “port_assignments (catalyst_center.fabric.fabric_sites.fabric_devices)”
NameTypeConstraintMandatoryDefault Value
interfacesListinterfacesNo

interfaces (catalyst_center.fabric.fabric_sites.fabric_devices.port_assignments)

Section titled “interfaces (catalyst_center.fabric.fabric_sites.fabric_devices.port_assignments)”
NameTypeConstraintMandatoryDefault Value
interface_nameStringNo
interfaces_rangeStringRegex: ^[A-Za-z]+\d+(/\d+)+-\d+(/\d+)+$No
interface_descriptionStringNo
connected_device_typeChoiceUSER_DEVICE, ACCESS_POINT, TRUNKING_DEVICE, AUTHENTICATOR_SWITCH, SUPPLICANT_BASED_EXTENDED_NODEYes
data_vlan_nameStringNo
voice_vlan_nameStringNo
security_group_nameStringNo
authenticate_template_nameChoiceNo Authentication, Open Authentication, Closed Authentication, Low ImpactNo

NameTypeConstraintMandatoryDefault Value
devicesListdevicesNo

NameTypeConstraintMandatoryDefault Value
port_assignmentsListport_assignmentsNo

port_assignments (catalyst_center.inventory.devices)

Section titled “port_assignments (catalyst_center.inventory.devices)”
NameTypeConstraintMandatoryDefault Value
interface_nameStringNo
interfaces_rangeStringRegex: ^[A-Za-z]+\d+(/\d+)+-\d+(/\d+)+$No
interface_descriptionStringNo
connected_device_typeChoiceUSER_DEVICE, ACCESS_POINT, TRUNKING_DEVICE, AUTHENTICATOR_SWITCH, SUPPLICANT_BASED_EXTENDED_NODEYes
data_vlan_nameStringNo
voice_vlan_nameStringNo
security_group_nameStringNo
authenticate_template_nameChoiceNo Authentication, Open Authentication, Closed Authentication, Low ImpactNo

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_SWITCH needs authenticate_template_name: Closed Authentication (NCHS20146) and must not set a data VLAN, voice VLAN or security group (NCHS20147). Catalyst Center does not support AUTHENTICATOR_SWITCH ports 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.

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 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:
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 Authentication

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 Authentication

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.

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"

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"