* Document properties
* The valid flags for OpenFlow 1.4 are OFPTC_EVICTION and OFPTC_VACANCY_EVENTS

Signed-off-by: Simon Horman <[email protected]>

---
v2
* Update properties documentation
* OFPTC_EVICTION and OFPTC_VACANCY_EVENTS are the valid flags.
  v1 incorrectly claimed there were no valid flags
---
 ryu/ofproto/ofproto_v1_4_parser.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ryu/ofproto/ofproto_v1_4_parser.py 
b/ryu/ofproto/ofproto_v1_4_parser.py
index 4dfbb45..0837003 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -1921,8 +1921,10 @@ class OFPTableMod(MsgBase):
     Attribute        Description
     ================ ======================================================
     table_id         ID of the table (OFPTT_ALL indicates all tables)
-    config           Bitmap of the following flags.
-                     OFPTC_DEPRECATED_MASK (3)
+    config           Bitmap of configuration flags.
+                     OFPTC_EVICTION
+                     OFPTC_VACANCY_EVENTS
+    properties       List of ``OFPTableModProp`` subclass instance
     ================ ======================================================
 
     Example::
@@ -1932,7 +1934,7 @@ class OFPTableMod(MsgBase):
             ofp_parser = datapath.ofproto_parser
 
             req = ofp_parser.OFPTableMod(datapath, 1, 3)
-            flags = ofproto.OFPTMPEF_OTHER
+            flags = ofproto.OFPTC_VACANCY_EVENTS
             properties = [ofp_parser.OFPTableModPropEviction(flags)]
             req = ofp_parser.OFPTableMod(datapath, 1, 3, properties)
             datapath.send_msg(req)
-- 
1.8.5.2


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to