This is a work-in-progress effort to create YANG data models for the CORD project and deliver flexible service compositions.
You may contact Larry Peterson llp@onlab.us and Peter Lee peter@corenova.com to learn more about this initiative and find out how you can help.
$ npm install yang-cord
Following the installation, you can start an instance of the YANG model-driven REST API web server. It utilizes yang-express middleware framework built on Express.js to provide dynamic YANG model-driven API routing capability.
$ npm start
> yang-cord@1.0.1 start /home/peter/yang-cord
> node lib/server.js
mounted 'cord-core' model
mounted 'xos-core' model
[cord-core] calling GET on /cord-core:subscriber
- API Guide - provides a walkthrough on interacting with the REST API endpoints
- Modeler's Guide - provides information on current YANG models for XOS and CORD and what's coming up next
- Developer's Guide - provides technical detail on controller logic and dynamic interfaces and how to best leverage YANG model-driven developer tools for getting things done fast.
To run the test suite, first install the dependencies, then run npm test
.
$ npm install
$ npm test
Mocha test suite is currently under development...