Ido Barkan has uploaded a new change for review. Change subject: always translate ipv6 ......................................................................
always translate ipv6 Change-Id: I22c4c06d62473fd9667b41fdbf9bcad6802770da Signed-off-by: Ido Barkan <[email protected]> --- M lib/vdsm/netconfpersistence.py 1 file changed, 5 insertions(+), 6 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/34/43034/1 diff --git a/lib/vdsm/netconfpersistence.py b/lib/vdsm/netconfpersistence.py index 55aef45..b8de93d 100644 --- a/lib/vdsm/netconfpersistence.py +++ b/lib/vdsm/netconfpersistence.py @@ -248,12 +248,11 @@ attributes['netmask'] = net_attr['netmask'] if net_attr['gateway']: attributes['gateway'] = net_attr['gateway'] - non_local_addresses = self._translate_ipv6_addr( - net_attr['ipv6addrs']) - if non_local_addresses: - attributes['ipv6addr'] = non_local_addresses - if net_attr['ipv6gateway'] != '::': - attributes['ipv6gateway'] = net_attr['ipv6gateway'] + non_local_addresses = self._translate_ipv6_addr(net_attr['ipv6addrs']) + if non_local_addresses: + attributes['ipv6addr'] = non_local_addresses + if net_attr['ipv6gateway'] != '::': + attributes['ipv6gateway'] = net_attr['ipv6gateway'] def _translate_ipv6_addr(self, ipv6_addrs): return [ -- To view, visit https://gerrit.ovirt.org/43034 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I22c4c06d62473fd9667b41fdbf9bcad6802770da Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: ovirt-3.5 Gerrit-Owner: Ido Barkan <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
