OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
|
Users can build OF-DPA as an interprocess mode application or choose to generate the archives necessary to statically link with their code. The sections below provide the build instructions for these modes. In either mode, the SDK is also built as part of the OF-DPA make process. OF-DPA builds the SDK using the SDK Make system.
The environment variables documented in tools/Make.common control building OF-DPA. They are set in the Makefile in the platform output directory.
Change to the platform subdirectory (e.g. output/gto-trident) and type "make". This will generate the following binaries in directory specified by DELIVERABLES_DIR. The default setting for DELIVERABLES_DIR is output/<platform>/build/ as defined in Make.common.
Users can choose to link OF-DPA statically with their application. The OF-DPA build target 'libraries' generates the archives for OF-DPA code. By default, the SDK code archives are also generated on invocation of 'libraries' target. The archives are generated in LIBRARIES_DIR directory. Statically link the OF-DPA archives with the user application code to generate the executable image.
The OF-Agent application is an example of a single process mode application. This application is built by the OF-DPA target 'agentapp'.
Applications accessing the OF-DPA APIs must invoke ofdpaClientInitialize() before invoking any other OF-DPA APIs.
Use the following commands to clean the builds
Use the following command to generate OF-DPA documentation