diff options
author | Sriram Natarajan <natarajan.sriram@gmail.com> | 2014-09-16 11:59:20 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-09-18 14:38:25 +0900 |
commit | 33ecedd81e63c6e80cb3ddab8f2f24906d4b3b64 (patch) | |
tree | b7de8b3bfd001fe3a60cd8f367384efe3d8b10af | |
parent | fad987254d2cf76c159ea58b7cab4ee3fa0b0fc5 (diff) |
of: Fix Enum Name for Bad Instruction Code Corrected Reset Count enum name
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2.py | 2 | ||||
-rw-r--r-- | ryu/ofproto/ofproto_v1_3.py | 2 | ||||
-rw-r--r-- | ryu/ofproto/ofproto_v1_4.py | 2 | ||||
-rw-r--r-- | ryu/tests/unit/ofproto/test_ofproto_v12.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py index 345d0885..0976d266 100644 --- a/ryu/ofproto/ofproto_v1_2.py +++ b/ryu/ofproto/ofproto_v1_2.py @@ -349,7 +349,7 @@ OFPFC_DELETE_STRICT = 4 # Strictly match wildcards and priority. OFPFF_SEND_FLOW_REM = 1 << 0 # Send flow removed message when flow # expires or is deleted. OFPFF_CHECK_OVERLAP = 1 << 1 # Check for overlapping entries first. -OFPFF_RESET_COUNT = 1 << 2 # Reset flow packet and byte counts. +OFPFF_RESET_COUNTS = 1 << 2 # Reset flow packet and byte counts. # struct ofp_group_mod OFP_GROUP_MOD_PACK_STR = '!HBxI' diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py index 418bab1b..3bb5c6bf 100644 --- a/ryu/ofproto/ofproto_v1_3.py +++ b/ryu/ofproto/ofproto_v1_3.py @@ -368,7 +368,7 @@ OFP_DEFAULT_PRIORITY = 0x8000 OFPFF_SEND_FLOW_REM = 1 << 0 # Send flow removed message when flow # expires or is deleted. OFPFF_CHECK_OVERLAP = 1 << 1 # Check for overlapping entries first. -OFPFF_RESET_COUNT = 1 << 2 # Reset flow packet and byte counts. +OFPFF_RESET_COUNTS = 1 << 2 # Reset flow packet and byte counts. OFPFF_NO_PKT_COUNTS = 1 << 3 # Don't keep track of packet count. OFPFF_NO_BYT_COUNTS = 1 << 4 # Don't keep track of byte count. diff --git a/ryu/ofproto/ofproto_v1_4.py b/ryu/ofproto/ofproto_v1_4.py index 610a34e3..983132f2 100644 --- a/ryu/ofproto/ofproto_v1_4.py +++ b/ryu/ofproto/ofproto_v1_4.py @@ -536,7 +536,7 @@ OFP_DEFAULT_PRIORITY = 0x8000 OFPFF_SEND_FLOW_REM = 1 << 0 # Send flow removed message when flow # expires or is deleted. OFPFF_CHECK_OVERLAP = 1 << 1 # Check for overlapping entries first. -OFPFF_RESET_COUNT = 1 << 2 # Reset flow packet and byte counts. +OFPFF_RESET_COUNTS = 1 << 2 # Reset flow packet and byte counts. OFPFF_NO_PKT_COUNTS = 1 << 3 # Don't keep track of packet count. OFPFF_NO_BYT_COUNTS = 1 << 4 # Don't keep track of byte count. diff --git a/ryu/tests/unit/ofproto/test_ofproto_v12.py b/ryu/tests/unit/ofproto/test_ofproto_v12.py index 556961b7..d6280a6d 100644 --- a/ryu/tests/unit/ofproto/test_ofproto_v12.py +++ b/ryu/tests/unit/ofproto/test_ofproto_v12.py @@ -323,7 +323,7 @@ class TestOfprot12(unittest.TestCase): def test_enum_ofp_flow_mod_flags(self): eq_(OFPFF_SEND_FLOW_REM, 1 << 0) eq_(OFPFF_CHECK_OVERLAP, 1 << 1) - eq_(OFPFF_RESET_COUNT, 1 << 2) + eq_(OFPFF_RESET_COUNTS, 1 << 2) def test_struct_ofp_group_mod(self): eq_(OFP_GROUP_MOD_PACK_STR, '!HBxI') |