papi: change default to use socket transport instead of shared memory transport 96/31996/6
authorOle Troan <ot@cisco.com>
Thu, 15 Apr 2021 14:53:39 +0000 (16:53 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 28 Apr 2021 16:03:45 +0000 (16:03 +0000)
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>
src/vpp-api/python/vpp_papi/vpp_papi.py

index 851c214..25f4727 100644 (file)
@@ -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.