[vpp-dev] How can i call acl_add_replace from python?!

2017-09-10 Thread Samuel S
Hi
I have python file for calling APIs. and i can call APIs.
But i have probleam when i want calling acl_add_replace, How can i send
parameter to r variable of acl_add_replace ?

This is acl_add_replace API struct
manual_print manual_endian define acl_add_replace
{
  u32 client_index;
  u32 context;
  u32 acl_index; /* ~0 to add, existing ACL# to replace */
  u8 tag[64]; /* What gets in here gets out in the corresponding tag field
when dumping the ACLs. */
  u32 count;
  vl_api_acl_rule_t r[count];
};

and how can i access r member and send parameter to it?
for example
vpp.call_vpp('acl_add_replace', acl_index = -1, tag="", count=1,
r[1].is_permit=1, ...)
?
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] How can i call acl_add_replace from python?!

2017-09-10 Thread Andrew Yourtchenko
Hi Samuel,

You should be able to find a few examples in the source code of the acl plugin 
unittests: test/test_acl_plugin*.py 

There are three files with various configs and usages.

Hope this helps!

--a

> On 10 Sep 2017, at 11:01, Samuel S  wrote:
> 
> Hi
> I have python file for calling APIs. and i can call APIs. 
> But i have probleam when i want calling acl_add_replace, How can i send 
> parameter to r variable of acl_add_replace ?
> 
> This is acl_add_replace API struct
> manual_print manual_endian define acl_add_replace
> {
>   u32 client_index;
>   u32 context;
>   u32 acl_index; /* ~0 to add, existing ACL# to replace */
>   u8 tag[64]; /* What gets in here gets out in the corresponding tag field 
> when dumping the ACLs. */
>   u32 count;
>   vl_api_acl_rule_t r[count];
> };
> 
> and how can i access r member and send parameter to it?
> for example 
> vpp.call_vpp('acl_add_replace', acl_index = -1, tag="", count=1, 
> r[1].is_permit=1, ...)
> ?
> ___
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev


[vpp-dev] vhost-user stable implementation?: VPP native or DPDK

2017-09-10 Thread Saxena, Nitin
Hi All

I went through following video regarding vhost-user.

https://www.youtube.com/watch?v=z-ZRof2hDP0

The question is in this video it has been told by default VPP implementation of 
vhost-user being used and not the dpdk one. Since this video is 1 yr old and I 
am using vpp version 1704. Can anyone please comment which vhost-user code is 
by default enabled in vpp1704 - is it dpdk one or VPP native? I can see in 
vpp-master/RELEASE.md that DPDK vhost was deprecated in vpp1609? Is it fixed 
now?

Thanks,
Nitin
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Build vpp on openwrt

2017-09-10 Thread Guo, Ruijing
Hi,

I am wondering what usage for vpp on openwrt.

Thanks,
-Ruijing

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of yug...@telincn.com
Sent: Saturday, September 9, 2017 9:19 AM
To: vpp-dev 
Subject: [vpp-dev] Build vpp on openwrt

Hi all,
Is there anyone try to build vpp on openwrt?

Regards,
Ewan


yug...@telincn.com
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] vhost-user stable implementation?: VPP native or DPDK

2017-09-10 Thread Guo, Ruijing

Just for your reference:
I am using vpp 17.07. The default one is vpp native. But it cannot work with 
virtio-user. So I change to vhost-user in dpdk.


From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Saxena, Nitin
Sent: Monday, September 11, 2017 1:22 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] vhost-user stable implementation?: VPP native or DPDK

Hi All

I went through following video regarding vhost-user.

https://www.youtube.com/watch?v=z-ZRof2hDP0

The question is in this video it has been told by default VPP implementation of 
vhost-user being used and not the dpdk one. Since this video is 1 yr old and I 
am using vpp version 1704. Can anyone please comment which vhost-user code is 
by default enabled in vpp1704 - is it dpdk one or VPP native? I can see in 
vpp-master/RELEASE.md that DPDK vhost was deprecated in vpp1609? Is it fixed 
now?

Thanks,
Nitin
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Build vpp on openwrt

2017-09-10 Thread yug...@telincn.com
Hi,
It's Linux system and It's easy to prune modules in openwrt.

Regards,
Ewan


yug...@telincn.com
 
From: Guo, Ruijing
Date: 2017-09-11 08:34
To: yug...@telincn.com; vpp-dev
Subject: RE: [vpp-dev] Build vpp on openwrt
Hi,
 
I am wondering what usage for vpp on openwrt.
 
Thanks,
-Ruijing
 
From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of yug...@telincn.com
Sent: Saturday, September 9, 2017 9:19 AM
To: vpp-dev 
Subject: [vpp-dev] Build vpp on openwrt
 
Hi all,
Is there anyone try to build vpp on openwrt?
 
Regards,
Ewan
 


yug...@telincn.com
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] Questions about bihash

2017-09-10 Thread chupenghong
hi,all
Bihash


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev