ip6_routes_from_variant


Description:


public GenericArray<IPRoute> ip6_routes_from_variant (Variant value)

Utility function to convert a Variant of type 'a(ayuayu)' representing an array of NetworkManager IPv6 routes (which are tuples of route, prefix, next hop, and metric) into a GenericArray of IPRoute objects.

Note that invalid routes are ignored but the valid ones are still returned.

Since 1.46, an empty list is returned if the variant type is not valid (before it was checked as assertion)

Parameters:

value

Variant of type 'a(ayuayu)'

Returns:

a newly allocated GenericArray of IPRoute objects


Namespace: NM.Utils
Package: libnm