diff options
author | Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> | 2015-04-14 13:18:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-04-17 07:46:31 +0900 |
commit | 8e0e09ec6471efda9340df58c72e35acb0387715 (patch) | |
tree | ba3a3d67ae30b7795a9666c4aee3acbd18f77fa4 | |
parent | ab20640f2039459c4b86f105c289c4ae8fcf4436 (diff) |
'map' returns iterator like object with Python 3
Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/vrrp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/lib/packet/vrrp.py b/ryu/lib/packet/vrrp.py index cca56906..699efa0d 100644 --- a/ryu/lib/packet/vrrp.py +++ b/ryu/lib/packet/vrrp.py @@ -275,12 +275,12 @@ class vrrp(packet_base.PacketBase): self.checksum = checksum self.ip_addresses = ip_addresses - assert len(ip_addresses) == self.count_ip + assert len(list(ip_addresses)) == self.count_ip self.auth_type = auth_type self.auth_data = auth_data - self._is_ipv6 = is_ipv6(self.ip_addresses[0]) + self._is_ipv6 = is_ipv6(list(self.ip_addresses)[0]) self.identification = 0 # used for ipv4 identification def checksum_ok(self, ipvx, vrrp_buf): |