add_to_ipv6_address_list
Add an IPv6 address or subnet to a named IPv6 firewall address-list on a MikroTik device; it manages the list only, so existing filter rules must reference that list.
Instructions
Add address (an IPv6 address or subnet) to a named IPv6
firewall address-list (/ipv6/firewall/address-list). Mirrors
add_to_address_list on the IPv6 menu.
IMPORTANT: this only manages the list - it does NOT create or
modify any firewall rule. Adding an address here only blocks or
allows traffic if an /ipv6/firewall/filter rule on the device
already references list_name. See README's "Blocking/allowing a
client via address lists" section.
address must be IPv6 (an IPv4 address/subnet is rejected before
the device is ever touched).
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
(without creating anything) if this exact list_name+address
pair already exists on the device - it never creates a duplicate.
Also errors clearly if the ipv6 package is disabled on the
device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| comment | No | ||
| confirm | No | ||
| timeout | No | ||
| list_name | Yes | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||