Manage VLAN Interface
manage_vlanManage VLAN interfaces on MikroTik devices: create, delete, enable, or disable them. Idempotent by name and supports dry-run preview.
Instructions
Add, remove, enable, or disable a VLAN interface. Idempotent by name: add returns already_exists when a VLAN with matching name, vlan-id, and parent interface exists. Supports dry-run mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| name | Yes | VLAN interface name — idempotency key (alphanumeric, hyphens, underscores, max 15 chars) | |
| vlanId | No | VLAN ID (1-4094; required for add) | |
| parentInterface | No | Parent interface name (e.g., ether1, bridge1; required for add) | |
| mtu | No | MTU size (add only) | |
| disabled | No | Whether to create the VLAN disabled (add only) | |
| comment | No | Optional comment (add only) | |
| dryRun | No | Preview changes without applying. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |