[attributs] ipv6_of_mac mange des strings et pas des instances d'Attrs
This commit is contained in:
parent
d01ee90fc7
commit
4f1dcce982
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue