The directory structure is currently:
<oftest>
`
...
– oft
...
– doc
...
– src
...
`-- python
...
`-- oftest
...
– tests
...
`-- test cases
`-- tools
...
Code Block | ||||
---|---|---|---|---|
| ||||
<oftest>
`
|-- oft
|-- doc
|-- src
| `-- python
| `-- oftest
|-- tests
| `-- test cases
`-- tools
|-- munger
`-- pylibopenflow
|
The tools directory is what processes the OpenFlow header
files to produce Python classes representing OpenFlow messages.
The results are placed in src/python/oftest and currently
include:
message.py |
...
The main API providing OF message classes | |
error.py |
...
Subclasses for error messages | |
action.py |
...
Subclasses for action specification | |
cstruct.py |
...
Direct representation of C structures in Python | |
class_maps.py |
...
Addition info about C structures |
In addition, the following Python files are present in
src/python/oftest:
controller.py |
...
The controller representation | |
dataplane.py |
...
The dataplane representation | |
action_list.py |
...
Action list class | |
netutils.py |
...
e.g., set promisc on sockets | |
ofutils.py |
...
Utilities related to OpenFlow messages | |
oft_assert.py |
...
Test framework level assertion | |
testutils.py |
...
Test utilities |
Tests are run from the tests directory. The file oft is the
top level entry point for tests. Try ./oft --help for some more.