zyxel_configure_switchport
Configure a switchport on a Zyxel switch by setting the interface, mode (access or trunk), and optional VLANs for access or trunk allowed lists.
Instructions
Configure switchport settings for an interface
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Switchport mode | |
| interface | Yes | Interface to configure (e.g., 'ethernet 1/1') | |
| accessVlan | No | Access VLAN ID (for access mode) | |
| allowedVlans | No | Allowed VLANs for trunk mode (e.g., '1,10,20-30') |