summaryrefslogtreecommitdiff
path: root/branches/3144/ipaddr.py
diff options
context:
space:
mode:
Diffstat (limited to 'branches/3144/ipaddr.py')
-rw-r--r--branches/3144/ipaddr.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/branches/3144/ipaddr.py b/branches/3144/ipaddr.py
index 79345ce..5487d7a 100644
--- a/branches/3144/ipaddr.py
+++ b/branches/3144/ipaddr.py
@@ -1657,10 +1657,13 @@ class _BaseV6(object):
A string, the expanded IPv6 address.
"""
- if isinstance(self, _BaseInterface):
- ip_str = str(self.ip)
- else:
+ if isinstance(self, IPv6Network):
+ ip_str = str(self.network_address)
+ elif isinstance(self, _BaseAddress):
ip_str = str(self)
+ else:
+ # _BaseInterface
+ ip_str = str(self.ip)
ip_int = self._ip_int_from_string(ip_str)
parts = []