remove_ipv6_route
Remove a static IPv6 route from a MikroTik device by destination address, optionally narrowed by gateway, with safety checks for dynamic routes.
Instructions
Remove a static IPv6 route (/ipv6/route remove), resolved by
dst_address - narrowed by gateway when more than one route
shares that dst_address. Mirrors remove_route on the IPv6 menu,
INCLUDING its most important safety property. Errors clearly if
nothing matches, or if the match is still ambiguous after
narrowing.
dst_address/gateway must be IPv6 (an IPv4 address/subnet in
either is rejected before the device is ever touched).
SAFETY: refuses outright (raises an error, does not remove
anything) if the resolved route is dynamic (dynamic=true - a
connected/DHCP/router-advertisement-installed route). Only static,
admin-created IPv6 routes can be removed by this tool.
RISK: removing the default route (dst_address="::/0") cuts all
outbound IPv6 traffic that relies on this gateway. The returned
preview's warning field is non-null whenever this is the case
(not blocking - removing a static default route is legitimate).
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 |
|---|---|---|---|
| confirm | No | ||
| gateway | No | ||
| device_name | Yes | ||
| dst_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||