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 <samuel.smit1...@gmail.com> 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