summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-06-18 16:35:26 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-06-20 06:42:37 +0900
commitabca83ce235907eeea5f1e1953a5f719ad0e5078 (patch)
tree2c8ce1cfe3bebdf2adc8e3e6deac07a9b7182f0f
parent852c2e882f51225f3f09a75f09b965490097c341 (diff)
nx_match: some comments
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/nx_match.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index be65eb59..40c98dff 100644
--- a/ryu/ofproto/nx_match.py
+++ b/ryu/ofproto/nx_match.py
@@ -114,6 +114,8 @@ class FlowWildcards(object):
class ClsRule(object):
+ """describe a matching rule for OF 1.0 OFPMatch (and NX).
+ """
def __init__(self):
self.wc = FlowWildcards()
self.flow = Flow()
@@ -309,6 +311,10 @@ class ClsRule(object):
return ofproto_v1_0.NXFF_OPENFLOW10
def match_tuple(self):
+ """return a tuple which can be used as *args for
+ ofproto_v1_0_parser.OFPMatch.__init__().
+ see Datapath.send_flow_mod.
+ """
assert self.flow_format() == ofproto_v1_0.NXFF_OPENFLOW10
wildcards = ofproto_v1_0.OFPFW_ALL