set_port_vlan_membership
Configure VLAN port membership on Zyxel switches by assigning ports as tagged, untagged, forbidden, or excluded. Preview changes with dry-run and apply with automatic backups.
Instructions
Set port membership in a VLAN (mode: tagged|untagged|forbidden|excluded). Protected ports (uplink 1, AP trunk 4) are refused. Auto-backs up current state before applying; running config is saved to startup on success. dry_run=true (default) previews without applying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| ports | Yes | ||
| dry_run | No | ||
| vlan_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |