self.value = mac_int_to_str(self.raw)
# GREv6 interface uses a 16-byte IP address for this attribute
elif self.length == 20:
- self.value = IPv6Address(unpack('>L', self.data[16:])[0])
- self.value_int = int(self.value)
- self.value_int_str = str(self.value_int)
+ self.value = ipnetwork.IPNetwork(unpack('>L', self.data[16:])[0])
+
else:
- raise Exception("Length of MACAddress attribute not supported: %d" % self.length)
+ self.log.info("Length of MACAddress attribute not supported: %d" % self.length)
+ self.value = None
except struct.error:
self.log.error("%s unpack of %s failed, data 0x%s" % (self, self.PACK, hexlify(self.data[4:])))