Applied the following fix. = >From b389c933fb1d474c5fb8185f03008f409d068638 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori <[email protected]> Date: Sun, 8 Jul 2012 20:21:18 -0700 Subject: [PATCH] of1.2: fix MTIPv6NdTarget
AttributeError: 'MTIPv6NdTarget' object has no attribute 'mask Signed-off-by: FUJITA Tomonori <[email protected]> --- ryu/ofproto/ofproto_v1_2_parser.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 9ab7d27..02ea421 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -1938,10 +1938,10 @@ class OFPMatchField(object): *value) self.length += self.n_bytes - def putv6(self, buf, offset, value, mask): + def putv6(self, buf, offset, value, mask=None): self._put_header(buf, offset) self._putv6(buf, offset + self.length, value) - if len(mask): + if mask and len(mask): self._putv6(buf, offset + self.length, mask) def oxm_len(self): @@ -2267,7 +2267,7 @@ class MTIPv6NdTarget(OFPMatchField): self.value = value def serialize(self, buf, offset): - self.putv6(buf, offset, self.value, self.mask) + self.putv6(buf, offset, self.value) @OFPMatchField.register_field_header([ofproto_v1_2.OXM_OF_IPV6_ND_SLL]) -- 1.7.4.4 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
