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.
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.