enable_interface
Enable a network interface by name on a MikroTik device, setting disabled=no. Requires write access and supports a preview before applying changes.
Instructions
Enable a network interface by name (sets disabled=no).
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a before/after preview without changing anything;
call again with confirm=True to actually apply it. Errors clearly if
interface_name does not exist on the device - it is never created.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_name": "<device_name>",
"interface_name": "<interface_name>"
},
"name": "enable_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| device_name | Yes | ||
| interface_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||