ip4_routes_to_variant


Description:


public unowned Variant ip4_routes_to_variant (GenericArray<IPRoute> routes)

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

Parameters:

routes

an array of NMIP4Route objects

Returns:

a new floating Variant representing routes.


Namespace: NM.Utils
Package: libnm