summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2014-03-04 15:12:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-03-04 15:29:54 +0900
commit0c83f96ae7c4de22fdc2d91641c56883ee39fa08 (patch)
tree3959f02548294994c53e4f376c25c3f8261e8a40
parentce11165ef4f75bd3be2604997f4ea36e820f5922 (diff)
of14: Correct documentation of table mod flags and properties
* Document properties * The valid flags for OpenFlow 1.4 are OFPTC_EVICTION and OFPTC_VACANCY_EVENTS Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_4_parser.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py
index eb735b89..b4f335a5 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -1916,8 +1916,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::
@@ -1927,7 +1929,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)