Create the switchportconfig YAML file and apply the Ethernet interface configuration. For more information, see Ethernet interface configuration - Cisco switch.
Change the port mode of the Ethernet interface from trunk to access for a Cisco switch with the following steps: