ip_routes_from_variant


Description:


[ Version ( since = "1.42" ) ]
public GenericArray<IPRoute> ip_routes_from_variant (Variant value, int family)

Utility function to convert a Variant representing a list of new-style NetworkManager IPv4 or IPv6 addresses (which are tuples of destination, prefix, next hop, metric, and additional attributes) into a GenericArray of IPRoute objects.

Parameters:

value

a Variant of type 'aa{sv}'

family

an IP address family

Returns:

a newly allocated GenericArray of IPRoute objects


Namespace: NM.Utils
Package: libnm