Formatting w/ black

This commit is contained in:
Pim van Pelt
2022-04-24 10:41:35 +00:00
parent 1a1760d45c
commit 71ea1823f4
6 changed files with 14 additions and 8 deletions

View File

@ -27,6 +27,7 @@ from vpp_papi import VPPApiClient
class VPPApi:
"""The VPPApi class is a base class that abstracts the vpp_papi."""
def __init__(self, address="/run/vpp/api.sock", clientname="vppcfg"):
self.logger = logging.getLogger("vppcfg.vppapi")
self.logger.addHandler(logging.NullHandler())
@ -40,7 +41,7 @@ class VPPApi:
self.lcp_enabled = False
def connect(self):
""" Connect to the VPP Dataplane, if we're not already connected """
"""Connect to the VPP Dataplane, if we're not already connected"""
if self.connected:
return True
@ -81,7 +82,7 @@ class VPPApi:
return True
def cache_clear(self):
""" Remove the cached VPP configuration elements and return an empty dictionary"""
"""Remove the cached VPP configuration elements and return an empty dictionary"""
self.cache_read = False
return {
"lcps": {},