From: Ole Troan Date: Thu, 15 Apr 2021 14:53:39 +0000 (+0200) Subject: papi: change default to use socket transport instead of shared memory transport X-Git-Tag: v21.10-rc0~169 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=df6d986f81f89ed46288ab508485700b4ed7dca1;p=vpp.git papi: change default to use socket transport instead of shared memory transport In preparation for removing Python shared memory support, change the default to use sockets. This may affect users of PAPI. E.g. if running against instances of VPP where the API socket is in a different location or disabled. Type: improvement Signed-off-by: Ole Troan Change-Id: I96308ed70b9ff314c9b487722174f5e4b14efdd2 Signed-off-by: Ole Troan --- diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py index 851c214cad4..25f47276732 100644 --- a/src/vpp-api/python/vpp_papi/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi/vpp_papi.py @@ -386,9 +386,9 @@ class VPPApiClient: VPPIOError = VPPIOError - def __init__(self, apifiles=None, testmode=False, async_thread=True, + def __init__(self, *, apifiles=None, testmode=False, async_thread=True, logger=None, loglevel=None, - read_timeout=5, use_socket=False, + read_timeout=5, use_socket=True, server_address='/run/vpp/api.sock'): """Create a VPP API object.