Justin,
> How can I "connect" to a specific instance of VPP through the python API ?
>
> Each instance (together, they form a topology) is run as follow:
> sudo vpp unix { log /tmp/vpp1.log cli-listen /run/vpp/cli-vpp1.sock }
> api-segment { prefix vpp1 } plugins { plugin dpdk_plugin.so { disable } }
>
> In python, usually, we do:
> vpp = VPP(jsonfiles)
> r = vpp.connect("xxx")
>
> Is it possible to connect to a "prefix" (eg "vpp1") to only interact with a
> specific instance ?
> Let's say, for instance, something like this:
> r = vpp.connect("vpp1")
Yes. Set chroot_prefix.
r = vpp.connect('vpp1', chroot_prefix='name of shared address segment')
Cheers,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links:
You receive all messages sent to this group.
View/Reply Online (#9174): https://lists.fd.io/g/vpp-dev/message/9174
View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/18138970
Mute This Topic: https://lists.fd.io/mt/18138970/21656
New Topic: https://lists.fd.io/g/vpp-dev/post
Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-
signature.asc
Description: Message signed with OpenPGP
