enable_route
Enable a MikroTik route by destination address, optionally narrowing by gateway or comment to resolve duplicate routes. Preview changes before applying with confirm.
Instructions
Enable a route (/ip/route set disabled=no), resolved by
dst_address - narrowed by gateway/comment when more than one
route shares that dst_address (e.g. two default routes to
different gateways, the standard failover shape). Errors clearly if
nothing matches, or if the match is still ambiguous after
narrowing.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| confirm | No | ||
| gateway | No | ||
| device_name | Yes | ||
| dst_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||