From a1358853d6fb9e9520cabe3c2ad7837cb04395ab Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Mon, 14 Jan 2019 07:52:17 -0800 Subject: [PATCH] WIP porting guide. --- onlp/implementors/apis.md | 3 +++ onlp/implementors/porting.md | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 onlp/implementors/porting.md diff --git a/onlp/implementors/apis.md b/onlp/implementors/apis.md index 00e199ff..a1ea1d66 100644 --- a/onlp/implementors/apis.md +++ b/onlp/implementors/apis.md @@ -14,3 +14,6 @@ ## System APIs * [platformi](http://opencomputeproject.github.io/OpenNetworkLinux/onlp/implementors/platformi) + +## Porting and Testing +* [Testing with ```onlps```](http://opencomputeproject.github.io/OpenNetworkLinux/onlp/implementors/porting) diff --git a/onlp/implementors/porting.md b/onlp/implementors/porting.md new file mode 100644 index 00000000..01dcfb90 --- /dev/null +++ b/onlp/implementors/porting.md @@ -0,0 +1,11 @@ +# Porting and Testing You Implementation + +The ```onlps``` tool is build as a static binary for your platform (like the old ```onlpdump``` program). It builds all of the ONLP core and your platform code together so you can easily build, test, debug, and iterate on your platform. +No shared libraries or setup is required. + +## Testing Attributes + +While ONLPv1 used the ```sysi``` interface to expose ONIE and Platform information ONLPv2 uses the new attribute interface. +At a minimum you must support the ONIE and Asset attributes on the Chassis OID to port from V1 to V2. + +## Testing the ONIE attribute