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:
parent
bcce5c4e76
commit
474538af5b
@ -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)
|
||||
"""
|
||||
|
@ -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)
|
||||
"""
|
||||
|
@ -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)
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user