commit | 98af775ed81173565b26afd32a6475906b516b1b | [log] [tgz] |
---|---|---|
author | Yotam Harchol <yotam.harchol@bigswitch.com> | Thu Aug 22 14:59:38 2013 -0700 |
committer | Yotam Harchol <yotam.harchol@bigswitch.com> | Thu Aug 22 14:59:38 2013 -0700 |
tree | b996d64dbcff58b4545a0e0aa68967ffdd80c4b4 | |
parent | e5d92975c499ae287bd4d3f072a91493612df9e0 [diff] |
Implementation of the Match porcelain interface for OF version 1.3: 1. Renamed ENUM values in MatchFields to conform with the OF spec to allow unified code generation. 2. Extended OFOxms factory with methods for creating OXM objects from a given field and value. This code is automatically generated from the oxm_map in java_model. 3. Implemented OFMatchV3Ver13.java custom template. 4. Implemented OFMatchV3Ver13.Builder.java custom template. Tested new implementation on demo controller and it works.
LoxiGen is a tool that generates OpenFlow protocol libraries for a number of languages. It is composed of a frontend that parses wire protocol descriptions and a backend for each supported language (currently C and Python, with Java on the way).
You can run LoxiGen directly from the repository. There's no need to install it, and it has no dependencies beyond Python 2.7+.
To generate the libraries for all languages:
make
To generate the library for a single language:
make c
The currently supported languages are c
and python
.
The generated libraries will be under the loxi_output
directory. This can be changed with the LOXI_OUTPUT_DIR
environment variable when using the Makefile.
Each generated library comes with its own set of documentation in the standard format for that language. Please see that documentation for more details on using the generated libraries.
Please fork the repository on GitHub and send us a pull request. You might also be interested in the INTERNALS file which has notes about how LoxiGen works.