Add a RouterOS item
mikrotik_addAdds an item to any RouterOS menu via a specified path and properties, returning the new item's .id for subsequent configuration.
Instructions
Add an item to any RouterOS menu (/<path> add ...). Returns the new item's .id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | RouterOS menu path, e.g. "/ip/address", "/interface/bridge/port" or "ip firewall filter". | |
| device | No | Name of the configured device. Defaults to the first device (see mikrotik_list_devices). | |
| properties | Yes | Item properties as in the CLI, e.g. {"address": "10.0.0.1/24", "interface": "ether2"}. |