add_ipv6_route
Create a static IPv6 route on a MikroTik device with dst_address and gateway. Preview changes with confirm=False, check default-route warnings, then apply with confirm=True.
Instructions
Add a static IPv6 route (/ipv6/route add): dst_address and
gateway are required, distance (failover priority - lower wins)
and comment are optional. Mirrors add_route on the IPv6 menu -
never refuses a duplicate dst_address, multiple routes sharing one
is the normal failover shape.
dst_address/gateway must be IPv6 (an IPv4 address/subnet in
either is rejected before the device is ever touched - /ipv6/route
has no IPv4 concept).
RISK: adding/overriding the default route (dst_address="::/0")
redirects all outbound IPv6 traffic through the new gateway. The
returned preview's warning field is non-null whenever this is the
case - always check it before calling again with confirm=true.
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 (including the warning
field) without changing anything; call again with confirm=True to
actually apply it. Also errors clearly if the ipv6 package is
disabled on the device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| confirm | No | ||
| gateway | Yes | ||
| distance | No | ||
| device_name | Yes | ||
| dst_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||