get_wan_ipv6
get_wan_ipv6
Section titled “get_wan_ipv6”Show the current IPv6 configuration of the WAN uplink(s).
Side effects: None (read-only). Call this before set_wan_ipv6 to
see exactly what you are about to change.
Returns one record per WAN interface with name, _id, and the
IPv6 keys: wan_type_v6 (connection type: disabled/dhcpv6/
pppoe/static), ipv6_wan_delegation_type (none or pd),
wan_dhcpv6_pd_size_auto,
wan_dhcpv6_pd_size (present only when PD is configured),
wan_ipv6_dns_preference, and ipv6_setting_preference.
Example
Section titled “Example”get_wan_ipv6(controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
wan_name | string | no | "" | Restrict the view to a single WAN by display name (e.g. "Internet 1"). Empty (default) returns every WAN. |
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |