Dan Kenigsberg has uploaded a new change for review. Change subject: Report multiple IPv4 addresses per device if available ......................................................................
Report multiple IPv4 addresses per device if available A future version of python-ethtool is going to expose ethtool.etherinfo.get_ipv4_addresses() method, reporting multiple addresses of a single device. Use this method if available. Signed-off-by: Dan Kenigsberg <[email protected]> Change-Id: I77bfd63874134b8d0c626c6d179643c2ec781b44 --- M ovirt-guest-agent/GuestAgentLinux2.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-guest-agent refs/changes/11/10611/1 diff --git a/ovirt-guest-agent/GuestAgentLinux2.py b/ovirt-guest-agent/GuestAgentLinux2.py index f410d65..ca75826 100644 --- a/ovirt-guest-agent/GuestAgentLinux2.py +++ b/ovirt-guest-agent/GuestAgentLinux2.py @@ -110,6 +110,8 @@ self.list_nics = self.ethtool_list_nics def _get_ipv4_addresses(self, dev): + if hasattr(dev, 'get_ipv4_addresses'): + return dev.get_ipv4_addresses() if dev.ipv4_address is not None: return [dev.ipv4_address] else: -- To view, visit http://gerrit.ovirt.org/10611 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77bfd63874134b8d0c626c6d179643c2ec781b44 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-guest-agent Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
