OFPFC_* enumerations are declared for flow mod commands, not for groups.

Signed-off-by: Wei-Li Tang <[email protected]>
---
 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 1cfe23d..359e93c 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 04406a6..64fc319 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 66c91e3..9a58d6c 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)
     """
-- 
1.7.9.5


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to