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')