@dancasey/openflow-schema
v0.4.5
Published
OpenFlow switch protocol schema in JSON
Readme
openflow-schema
What: OpenFlow schema (versions 1.0 and 1.3)
Why: Provides resource for message checking, instantiation, and even documentation for OpenFlow messages.
[!WARNING] I made this as part of a research project back in 2015-2016. The tooling and versions used here reflect the era. OpenFlow 1.4 and 1.5 are not covered.
Installation
Build: npm install
This will build dependencies and generate the lib directory with JSON schema from the YAML src (this executes build.js as prepublish step).
Test: npm test
Usage
Import the schema:
const {of13} = require('@dancasey/openflow-schema')For more thorough examples:
- See my
node-openflowlibrary that utilizes this schema - See my
rxdnSDN controller. - Read Chapter IV here.
References
- OpenFlow switch specification and corresponding
openflow.hfrom Open Networking Foundation (ONF) - JSON Schema
- Understanding JSON Schema by Space Telescope Science Institute
- yaml.org
- js-yaml
