aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/Policer.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-08-15 06:36:36 +0000
committerPeter Mikus <pmikus@cisco.com>2019-08-15 06:36:36 +0000
commit545216fdee77b0b9ddc8d5e8c0f2e5662cacea76 (patch)
treee981a8c081ee3f0da3f19684207ab0e22539dfbd /resources/libraries/python/Policer.py
parent6d941885b7974c992e5376a5c80dbe536ed0fc2f (diff)
Reduce disabled pylint to address them not hide
+ Fixed Qemu - Broad Exception should be addressed - Policer is about to be refactored - Drop search to be refactored Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I97eb992497ff6334057bf82a0f413387706e17fd
Diffstat (limited to 'resources/libraries/python/Policer.py')
-rw-r--r--resources/libraries/python/Policer.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/libraries/python/Policer.py b/resources/libraries/python/Policer.py
index 55429e7cb3..9e14a4fd58 100644
--- a/resources/libraries/python/Policer.py
+++ b/resources/libraries/python/Policer.py
@@ -109,7 +109,6 @@ class PolicerClassifyTableType(Enum):
self.string = string
-# pylint: disable=too-many-instance-attributes
class Policer(object):
"""Policer utilities."""
@@ -145,7 +144,6 @@ class Policer(object):
# create policer
color_aware = 'color-aware' if self._color_aware else ''
- # pylint: disable=no-member
conform_action = self._conform_action.value
if PolicerAction.MARK_AND_TRANSMIT == self._conform_action:
@@ -213,7 +211,7 @@ class Policer(object):
node,
"policer/policer_classify_add_session.vat",
policer_index=policer_index,
- pre_color=self._classify_precolor.value, # pylint: disable=no-member
+ pre_color=self._classify_precolor.value,
table_index=new_table_index,
skip_n=skip_n_vectors,
match_n=match_n_vectors,
@@ -228,7 +226,7 @@ class Policer(object):
node,
"policer/policer_classify_set_interface.vat",
sw_if_index=self._sw_if_index,
- table_type=table_type.value, # pylint: disable=no-member
+ table_type=table_type.value,
table_index=new_table_index)
VatJsonUtil.verify_vat_retval(