mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
'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>
This commit is contained in:
parent
ab20640f20
commit
8e0e09ec64
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user