summaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-12-18 19:01:19 -0500
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-12-18 19:01:19 -0500
commitee6b0e2904ee5123198ffe26a7de3019e16332b2 (patch)
treec06d487b1004165a6f8f653a768d92ea6fedda1b /src/vpp-api
parentac9a585c6207ac876025f924aeb96ddcac8c8805 (diff)
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 <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_transport_socket.py4
1 files changed, 2 insertions, 2 deletions
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: