Also fix some pep8 warnings.
Signed-off-by: FUJITA Tomonori <[email protected]>
---
ryu/ofproto/ofproto_v1_2_parser.py | 17 +++++------------
1 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py
b/ryu/ofproto/ofproto_v1_2_parser.py
index 254d320..956d73a 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -218,15 +218,6 @@ class OFPSetConfig(MsgBase):
self.flags, self.miss_send_len)
-class OFPMatch(object):
- def __init__(self):
- super(OFPMatch, self).__init__()
-
- @classmethod
- def parser(cls, buf, offset):
- pass
-
-
@_register_parser
@_set_msg_type(ofproto_v1_2.OFPT_PACKET_IN)
class OFPPacketIn(MsgBase):
@@ -263,7 +254,8 @@ class OFPFlowRemoved(MsgBase):
msg.idle_timeout, msg.hard_timeout, msg.packet_count,
msg.byte_count) = struct.unpack_from(
ofproto_v1_2.OFP_FLOW_REMOVED_PACK_STR0,
- msg.buf, ofproto_v1_2.OFP_HEADER_SIZE +
ofproto_v1_2.OFP_MATCH_SIZE)
+ msg.buf,
+ ofproto_v1_2.OFP_HEADER_SIZE + ofproto_v1_2.OFP_MATCH_SIZE)
offset = (ofproto_v1_2.OFP_HEADER_SIZE +
ofproto_v1_2.OFP_FLOW_REMOVED_SIZE)
@@ -616,8 +608,9 @@ class OFPActionSetField(OFPAction):
# TODO: serialize OXM
[email protected]_action_type(ofproto_v1_2.OFPAT_EXPERIMENTER,
-
ofproto_v1_2.OFP_ACTION_EXPERIMENTER_HEADER_SIZE)
[email protected]_action_type(
+ ofproto_v1_2.OFPAT_EXPERIMENTER,
+ ofproto_v1_2.OFP_ACTION_EXPERIMENTER_HEADER_SIZE)
class OFPActionExperimenter(OFPAction):
def __init__(self, experimenter):
super(OFPActionExperimenter, self).__init__()
--
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