From ee6b0e2904ee5123198ffe26a7de3019e16332b2 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 18 Dec 2020 19:01:19 -0500 Subject: papi: remove import vpp_transport_socket See discussion in: https://gerrit.fd.io/r/c/vpp/+/19472 Type: refactor Change-Id: Icbf686f615f13898d12fd211f68c3498d373a5d7 Signed-off-by: Paul Vinciguerra --- src/vpp-api/python/vpp_papi/vpp_transport_socket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py index a6340d8bb9e..4af2d934ae8 100644 --- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py +++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py @@ -8,7 +8,6 @@ import select import multiprocessing import queue import logging -from . import vpp_papi logger = logging.getLogger('vpp_papi.transport') logger.addHandler(logging.NullHandler()) @@ -141,8 +140,9 @@ class VppTransport: try: # Might fail, if VPP closes socket before packet makes it out, # or if there was a failure during connect(). + # TODO: manually build message so that .disconnect releases server-side resources rv = self.parent.api.sockclnt_delete(index=self.socket_index) - except (IOError, vpp_papi.VPPApiError): + except (IOError, self.parent.VPPApiError): pass self.connected = False if self.socket is not None: -- cgit 1.2.3-korg