Study and respond to PyLint

Add a reasonably tolerant .pylintrc and fix most pylint errors and
warnings.

------------------------------------------------------------------
Your code has been rated at 9.78/10
This commit is contained in:
Pim van Pelt
2022-04-22 19:31:38 +00:00
parent f8a6c3eba7
commit bc0310e088
21 changed files with 343 additions and 330 deletions

View File

@ -11,6 +11,8 @@ class Applier(VPPApi):
and will ensure that the local cache is consistent after creations and
modifications."""
# pylint: disable=unnecessary-pass
def __init__(self, address="/run/vpp/api.sock", clientname="vppcfg"):
VPPApi.__init__(self, address, clientname)
self.logger.info("VPP Applier: changing the dataplane is enabled")
@ -47,9 +49,6 @@ class Applier(VPPApi):
"""'config' is the YAML configuration for the vxlan_tunnels: entry"""
pass
def delete_subinterface(self, ifname):
pass
def set_interface_link_mtu(self, ifname, link_mtu):
pass