ip_routes_to_variant


Description:


[ Version ( since = "1.42" ) ]
public unowned Variant ip_routes_to_variant (GenericArray<IPRoute> routes)

Utility function to convert a GenericArray of IPRoute objects representing IPv4 or IPv6 routes into a Variant of type 'aa{sv}' representing an array of new-style NetworkManager IP routes ( which are tuples of destination, prefix, next hop, metric, and additional attributes).

Parameters:

routes

an array of IPRoute objects

Returns:

a new floating Variant representing routes.


Namespace: NM.Utils
Package: libnm