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 <ot@cisco.com> Change-Id: I96308ed70b9ff314c9b487722174f5e4b14efdd2 Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user