Function

NM-1.0NMutils_ip_routes_to_variantSince 1.42

  • Utility function to convert a GLib.PtrArray of NM.IPRoute objects representing IPv4 or IPv6 routes into a GLib.Variant of type 'aa{sv}' representing an array of new-style NetworkManager IP routes. All routes will include "dest" (an IP address string), "prefix" (an uint) and optionally "next-hop" (an IP address string) and "metric" (an uint). Some routes may include additional attributes. Note that invalid routes are discarded and only a warning is emitted, but the valid routes are still returned.

    Parameters

    Returns GLib.Variant

    a new floating GLib.Variant representing routes.

    1.42