OpenFlow switch protocol schema in JSON
npm install @dancasey/openflow-schemaWhat: 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.
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
Import the schema:
``js`
const {of13} = require('@dancasey/openflow-schema')
For more thorough examples:
- See my node-openflow library that utilizes this schema
- See my rxdn SDN controller.
- Read Chapter IV here.
- OpenFlow switch specification and corresponding openflow.h` from Open Networking Foundation (ONF)
- JSON Schema
- Understanding JSON Schema by Space Telescope Science Institute
- yaml.org
- js-yaml