HI Murthy,
There are two plugins, that I know of, that use the ACL as a service; ACL based
forwarding (ABF) and group based policy (GBP).
Both of these plugins expect that the user first configures the ACL using the
ACL plugin, then passes the index of the ACL during ABF/GBP programming. This
separation means that the ABF/GBP plugins do not need to reimplement the rich
ACL API, which is a major benefit. Is this an approach you could also take?
/neale
De : au nom de Satya Murthy
Date : jeudi 23 mai 2019 à 12:29
À : "vpp-dev@lists.fd.io"
Objet : [vpp-dev] Programming(add/del/mod) ACLs from another plugin
Hi ,
We are planning to use "ACL as a service" framework using the lookup contexts
for performing packet classifications from our custom plugin. While this seem
to be achievable, we have one issue at our hand.
We would like to program the ACLs ( add/delete of ACL rules ) also from our
custom plugin instead of VPP-API framework. However, I see that the lower
layer functions like acl_add_list() are declared as non-static (only available
via APIs), preventing us to directly use those functions from our custom plugin.
We can get away with this static function issue by using function pointers. But
we would like to know , if there is any other cleaner framework VPP provides to
add/del ACLs from other plugins instead of VPP-API framework.
Please let us know.
--
Thanks & Regards,
Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13122): https://lists.fd.io/g/vpp-dev/message/13122
Mute This Topic: https://lists.fd.io/mt/31729492/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-