Skip to content

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.

get_wan_ipv6(controller="default")
ParameterTypeRequiredDefaultDescription
wan_namestringno""Restrict the view to a single WAN by display name (e.g. "Internet 1"). Empty (default) returns every WAN.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".