From 0c83f96ae7c4de22fdc2d91641c56883ee39fa08 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Tue, 4 Mar 2014 15:12:46 +0900 Subject: 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 Signed-off-by: FUJITA Tomonori --- 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 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) -- cgit v1.2.3