Signed-off-by: Satoshi Kobayashi <[email protected]>
---
ryu/lib/packet/vrrp.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ryu/lib/packet/vrrp.py b/ryu/lib/packet/vrrp.py
index cca5690..699efa0 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):
--
2.3.2 (Apple Git-55)
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel