summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2015-08-12 00:00:30 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-20 17:35:26 +0900
commit1d30f0987fd5c1b8120a9546d5289c0aabb88a9b (patch)
tree54c046164d34ff9f0965b2a11a4299c9b195bc40
parent2fb5871a5686ff9410f154fbd1ddacdeb7850f8b (diff)
Sprinkle StringifyMixin
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/nx_match.py7
1 files 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):