From df6d986f81f89ed46288ab508485700b4ed7dca1 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 15 Apr 2021 16:53:39 +0200 Subject: 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 --- src/vpp-api/python/vpp_papi/vpp_papi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vpp-api/python/vpp_papi') 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. -- cgit 1.2.3-korg