Create VLAN Interface
create_vlanCreate VLAN interfaces on MikroTik routers with idempotency checks that prevent duplicate configuration. Dry-run mode validates changes before applying.
Instructions
Create a new VLAN interface on a MikroTik router. Performs idempotency checks: if a VLAN with the same name already exists with matching configuration, returns success without changes. Supports dry-run mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| name | Yes | VLAN interface name (alphanumeric, hyphens, underscores, max 15 chars) | |
| vlanId | Yes | VLAN ID (1-4094) | |
| parentInterface | Yes | Parent interface name (e.g., ether1, bridge1) | |
| mtu | No | MTU size | |
| disabled | No | Whether the VLAN interface should be disabled | |
| comment | No | Optional comment for the VLAN interface | |
| dryRun | No | If true, validate and return planned changes without applying |