OFPGroupMod: Fix OFPGC_* typo in examples

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

Signed-off-by: Wei-Li Tang <alextwl@xinguard.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Wei-Li Tang 2014-02-06 00:28:36 +08:00 committed by FUJITA Tomonori
parent bcce5c4e76
commit 474538af5b
3 changed files with 12 additions and 12 deletions

View File

@ -1644,9 +1644,9 @@ class OFPGroupMod(MsgBase):
Attribute Description Attribute Description
================ ====================================================== ================ ======================================================
command One of the following values. command One of the following values.
OFPFC_ADD OFPGC_ADD
OFPFC_MODIFY OFPGC_MODIFY
OFPFC_DELETE OFPGC_DELETE
type One of the following values. type One of the following values.
OFPGT_ALL OFPGT_ALL
OFPGT_SELECT OFPGT_SELECT
@ -1675,7 +1675,7 @@ class OFPGroupMod(MsgBase):
actions)] actions)]
group_id = 1 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) ofp.OFPGT_SELECT, group_id, buckets)
datapath.send_msg(req) datapath.send_msg(req)
""" """

View File

@ -3198,9 +3198,9 @@ class OFPGroupMod(MsgBase):
Attribute Description Attribute Description
================ ====================================================== ================ ======================================================
command One of the following values. command One of the following values.
OFPFC_ADD OFPGC_ADD
OFPFC_MODIFY OFPGC_MODIFY
OFPFC_DELETE OFPGC_DELETE
type One of the following values. type One of the following values.
OFPGT_ALL OFPGT_ALL
OFPGT_SELECT OFPGT_SELECT
@ -3229,7 +3229,7 @@ class OFPGroupMod(MsgBase):
actions)] actions)]
group_id = 1 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) ofp.OFPGT_SELECT, group_id, buckets)
datapath.send_msg(req) datapath.send_msg(req)
""" """

View File

@ -4508,9 +4508,9 @@ class OFPGroupMod(MsgBase):
Attribute Description Attribute Description
================ ====================================================== ================ ======================================================
command One of the following values. command One of the following values.
OFPFC_ADD OFPGC_ADD
OFPFC_MODIFY OFPGC_MODIFY
OFPFC_DELETE OFPGC_DELETE
type One of the following values. type One of the following values.
OFPGT_ALL OFPGT_ALL
OFPGT_SELECT OFPGT_SELECT
@ -4539,7 +4539,7 @@ class OFPGroupMod(MsgBase):
actions)] actions)]
group_id = 1 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) ofp.OFPGT_SELECT, group_id, buckets)
datapath.send_msg(req) datapath.send_msg(req)
""" """