From 474538af5b0e30d687f711942cb607e52cd6a2cd Mon Sep 17 00:00:00 2001 From: Wei-Li Tang Date: Thu, 6 Feb 2014 00:28:36 +0800 Subject: [PATCH] OFPGroupMod: Fix OFPGC_* typo in examples OFPFC_* enumerations are declared for flow mod commands, not for groups. Signed-off-by: Wei-Li Tang Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_2_parser.py | 8 ++++---- ryu/ofproto/ofproto_v1_3_parser.py | 8 ++++---- ryu/ofproto/ofproto_v1_4_parser.py | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 1cfe23df..359e93ca 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -1644,9 +1644,9 @@ class OFPGroupMod(MsgBase): Attribute Description ================ ====================================================== command One of the following values. - OFPFC_ADD - OFPFC_MODIFY - OFPFC_DELETE + OFPGC_ADD + OFPGC_MODIFY + OFPGC_DELETE type One of the following values. OFPGT_ALL OFPGT_SELECT @@ -1675,7 +1675,7 @@ class OFPGroupMod(MsgBase): actions)] group_id = 1 - req = ofp_parser.OFPGroupMod(datapath, ofp.OFPFC_ADD, + req = ofp_parser.OFPGroupMod(datapath, ofp.OFPGC_ADD, ofp.OFPGT_SELECT, group_id, buckets) datapath.send_msg(req) """ diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 04406a67..64fc319d 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -3198,9 +3198,9 @@ class OFPGroupMod(MsgBase): Attribute Description ================ ====================================================== command One of the following values. - OFPFC_ADD - OFPFC_MODIFY - OFPFC_DELETE + OFPGC_ADD + OFPGC_MODIFY + OFPGC_DELETE type One of the following values. OFPGT_ALL OFPGT_SELECT @@ -3229,7 +3229,7 @@ class OFPGroupMod(MsgBase): actions)] group_id = 1 - req = ofp_parser.OFPGroupMod(datapath, ofp.OFPFC_ADD, + req = ofp_parser.OFPGroupMod(datapath, ofp.OFPGC_ADD, ofp.OFPGT_SELECT, group_id, buckets) datapath.send_msg(req) """ diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 66c91e3d..9a58d6c3 100644 --- a/ryu/ofproto/ofproto_v1_4_parser.py +++ b/ryu/ofproto/ofproto_v1_4_parser.py @@ -4508,9 +4508,9 @@ class OFPGroupMod(MsgBase): Attribute Description ================ ====================================================== command One of the following values. - OFPFC_ADD - OFPFC_MODIFY - OFPFC_DELETE + OFPGC_ADD + OFPGC_MODIFY + OFPGC_DELETE type One of the following values. OFPGT_ALL OFPGT_SELECT @@ -4539,7 +4539,7 @@ class OFPGroupMod(MsgBase): actions)] group_id = 1 - req = ofp_parser.OFPGroupMod(datapath, ofp.OFPFC_ADD, + req = ofp_parser.OFPGroupMod(datapath, ofp.OFPGC_ADD, ofp.OFPGT_SELECT, group_id, buckets) datapath.send_msg(req) """