Red Hat Bugzilla – Bug 868979
[RFE] Add convenience function to retrieve the string representation of a IPv4 and IPv6 address
Last modified: 2015-08-18 11:25:21 EDT
Description of problem:
Summary says it all.
It is quite common to need the string repr. of a IPv4 or v6 address, but the current NMClient API (via gobject introspection) does no't provide a direct way to retrieve those strings, they have to be converted manually.
I'd love to see these convenience functions in the IPv4/IPv6Address classes.
Maybe as a utility function
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
The new "libnm" in NetworkManager 1.0 (available in F22 and later) represents IP addresses as strings in all places in its API:
>>> from gi.repository import NM
>>> client = NM.Client.new()