[attributs] ipv6_of_mac mange des strings et pas des instances d'Attrs

This commit is contained in:
Valentin Samir 2013-04-10 10:51:55 +02:00
parent d01ee90fc7
commit 4f1dcce982

View file

@ -561,7 +561,7 @@ class ip6HostNumber(Attr):
can_modify = [nounou]
def parse_value(self, ip6):
ip = ip6_of_mac(self.parent['macAddress'][0], int(self.parent['rid'][0]))
ip = ip6_of_mac(str(self.parent['macAddress'][0]), int(str(self.parent['rid'][0])))
self.value = netaddr.ip.IPAddress(ip)
def __unicode__(self):