Enable or disable a RouterOS item
mikrotik_set_enabledEnable or disable RouterOS interfaces, firewall rules, routes, users, or other items by ID or equality filter. Specify the menu path and desired enabled state.
Instructions
Enable or disable an interface, firewall rule, route, user, etc. Identify it by id or a where filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | Yes | RouterOS menu path, e.g. "/ip/address", "/interface/bridge/port" or "ip firewall filter". | |
| where | No | Equality filters, e.g. {"type": "ether", "disabled": false}. | |
| device | No | Name of the configured device. Defaults to the first device (see mikrotik_list_devices). | |
| enabled | Yes |