From 1d30f0987fd5c1b8120a9546d5289c0aabb88a9b Mon Sep 17 00:00:00 2001 From: Jason Kölker Date: Wed, 12 Aug 2015 00:00:30 +0000 Subject: Sprinkle StringifyMixin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jason Kölker Signed-off-by: FUJITA Tomonori --- ryu/ofproto/nx_match.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py index 4f7db8ab..2364780b 100644 --- a/ryu/ofproto/nx_match.py +++ b/ryu/ofproto/nx_match.py @@ -20,6 +20,7 @@ import struct from ryu import exception from ryu.lib import mac from ryu.lib.pack_utils import msg_pack_into +from . import ofproto_parser from . import ofproto_v1_0 from . import inet @@ -62,7 +63,7 @@ _MF_FIELDS = {} FLOW_N_REGS = 8 # ovs 1.5 -class Flow(object): +class Flow(ofproto_parser.StringifyMixin): def __init__(self): self.in_port = 0 self.dl_vlan = 0 @@ -92,7 +93,7 @@ class Flow(object): self.pkt_mark = 0 -class FlowWildcards(object): +class FlowWildcards(ofproto_parser.StringifyMixin): def __init__(self): self.dl_src_mask = 0 self.dl_dst_mask = 0 @@ -114,7 +115,7 @@ class FlowWildcards(object): self.pkt_mark_mask = 0 -class ClsRule(object): +class ClsRule(ofproto_parser.StringifyMixin): """describe a matching rule for OF 1.0 OFPMatch (and NX). """ def __init__(self): -- cgit v1.2.3