diff options
author | Ole Troan <ot@cisco.com> | 2021-05-04 12:45:57 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2021-07-12 10:41:10 +0000 |
commit | 041372b79b843b54dfad048dda237e64d1a5f127 (patch) | |
tree | 63a4287f21ebfd0f5b3fde8e882b1c2a33464f46 /src/vpp-api/python/vpp_papi/vpp_papi.py | |
parent | 0046e97eb94cbcf278be2c892e4b686da670a414 (diff) |
papi: remove shared memory transport
This patch removes the papi transport shared memory plugin.
It also removes any dependency on CFFI.
Type: feature
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ia81701c0dc506871e511495d837e41420e1fdf72
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/vpp_papi.py')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_papi.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py index 25f47276732..3465f503e9e 100644 --- a/src/vpp-api/python/vpp_papi/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi/vpp_papi.py @@ -44,6 +44,8 @@ except ModuleNotFoundError: VppTransport = V +from . vpp_transport_socket import VppTransport + logger = logging.getLogger('vpp_papi') logger.addHandler(logging.NullHandler()) @@ -422,16 +424,10 @@ class VPPApiClient: self.async_thread = async_thread self.event_thread = None self.testmode = testmode - self.use_socket = use_socket self.server_address = server_address self._apifiles = apifiles self.stats = {} - if use_socket: - from . vpp_transport_socket import VppTransport - else: - from . vpp_transport_shmem import VppTransport - if not apifiles: # Pick up API definitions from default directory try: @@ -906,11 +902,10 @@ class VPPApiClient: def __repr__(self): return "<VPPApiClient apifiles=%s, testmode=%s, async_thread=%s, " \ - "logger=%s, read_timeout=%s, use_socket=%s, " \ + "logger=%s, read_timeout=%s, " \ "server_address='%s'>" % ( self._apifiles, self.testmode, self.async_thread, - self.logger, self.read_timeout, self.use_socket, - self.server_address) + self.logger, self.read_timeout, self.server_address) def details_iter(self, f, **kwargs): cursor = 0 |