You cannot use  CLI socket with VAT. They are completely different things.

-- 
Damjan

> On 10 May 2018, at 14:58, Peter Mikus <pmi...@cisco.com> wrote:
> 
> Hello,
>
> I am trying to override api-segment prefix as well as override cli-listen 
> socket file [1].
> However I am not able to connect to VPP via vpp_api_test over the socket file.
>
> Is this expected behavior? How to connect to vpp via vpp_api_test over custom 
> socket file?
>
> I am aiming for controlling more than one VPP instance (that is why prefix) 
> via vpp_api_test. Is that possible?
>
> Thank you.
>
> My startup.conf
>
>     unix
>     {
>         cli-listen /run/vpp/cli-vpp1.sock
>         log /tmp/vpe.log
>         nodaemon
>     }
>     api-segment
>     {
>         prefix vpp1
>     }
>     cpu
>     {
>         corelist-workers 2
>         main-core 1
>     }
>     dpdk
>     {
>         dev 0000:07:00.0
>     }
>
> 1) Connecting to vppctl works:
>
> $ sudo vppctl -s /run/vpp/cli-vpp1.sock sh ver
> vpp v18.04-release built by root on f10ad4364e3e at Wed Apr 25 16:06:03 UTC 
> 2018
>
>
> 2) Connecting to vpp_api_test does not work
>
> $ sudo vpp_api_test socket-name /run/vpp/cli-vpp1.sock
> clib_socket_init: connect (fd 3, '/run/vpp/cli-vpp1.sock'): Protocol wrong 
> type for socket
> WARNING: socket connection failed
>
> [1] https://wiki.fd.io/view/VPP/Progressive_VPP_Tutorial
> [2] 
> https://wiki.fd.io/view/VPP/Command-line_Arguments#.22api-trace.22_parameters
>
> Peter Mikus
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#9248): https://lists.fd.io/g/vpp-dev/message/9248
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/19024629
Mute This Topic: https://lists.fd.io/mt/19024629/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
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to