aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api/python/pneum/pneum.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api/python/pneum/pneum.c')
-rw-r--r--vpp-api/python/pneum/pneum.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vpp-api/python/pneum/pneum.c b/vpp-api/python/pneum/pneum.c
index 7250cf6a..ebe47b2f 100644
--- a/vpp-api/python/pneum/pneum.c
+++ b/vpp-api/python/pneum/pneum.c
@@ -116,11 +116,14 @@ pneum_rx_thread_fn (void *arg)
}
int
-pneum_connect (char *name)
+pneum_connect (char * name, char * chroot_prefix)
{
int rv = 0;
pneum_main_t *pm = &pneum_main;
+ if (chroot_prefix != NULL)
+ vl_set_memory_root_path (chroot_prefix);
+
if ((rv = vl_client_api_map("/vpe-api"))) {
clib_warning ("vl_client_api map rv %d", rv);
return rv;