[P4-dev] Auto-Generation of APIs from P4 programs!

p4 p4 at p4.org
Mon Apr 13 13:01:34 EDT 2015


The P4 Language Consortium welcomes the following open source 
contribution showcasing auto-generation of Open Compute Project's (OCP) 
Switch Abstraction Interface (SAI) APIs.

The contributed code includes:

1. A p4 program that defines tables and a logical pipeline that can be 
used to generate the SAI APIs
2. The auto-generated C header file containing the auto-generated SAI APIs.

The p4 program can be used to generate a soft-switch which can be used 
for building sample applications on top of SAI APIs and also test 
applications for conformance to SAI. We hope this code will help the SAI 
effort at OCP in it's test and conformance framework development.

The code is available here 
<https://github.com/p4lang/p4factory/tree/master/targets/sai_p4>. The 
SAI.p4 program is here 
<https://github.com/p4lang/p4factory/blob/master/targets/sai_p4/p4src/sai_p4.p4> 
and the header file containing the auto-generated APIs is here 
<https://github.com/p4lang/p4factory/blob/master/targets/sai_p4/sai_templ.h>.

---
Please join thep4-dev <http://p4.org/pipermail/p4-dev_p4.org/>email list 
to discuss this code release.Subscribe 
<http://p4.org/mailman/listinfo/p4-dev_p4.org>.
Want to become a member of P4 Language Consortium? Send an email to 
membership [at] p4 [dot] org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20150413/0ffecef4/attachment-0001.html>


More information about the P4-dev mailing list