Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/ofproto/nx_match.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index be65eb5..40c98df 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
--
1.8.1.5
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel