commit | 4d9368930a15bd019f5e1284a955efeb655afd03 | [log] [tgz] |
---|---|---|
author | Peter K. Lee <peter@intercloud.net> | Tue Sep 13 11:59:21 2016 -0700 |
committer | Peter K. Lee <peter@intercloud.net> | Tue Sep 13 11:59:21 2016 -0700 |
tree | e1688a07d55106a9020facf89ed11d34528f4433 | |
parent | d29da3c4f1a80290b1d3b42b3a70d670d39c851a [diff] |
fixes #7. I'm preserving all the typedefs inside xos-types for now but I don't think they're necessary. The intent of YANG typedef system is to define distinct forms of type for reusability but since all these typedefs are of the 'unique-identifier' type, they are largely redundant.
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.8 start /home/plee/hack/yang-cord > node lib/api/server.js [yang-express] start of a new journey [openapi] enabling... [openapi] enabled ok [restjson] enabling... [restjson] enabled ok [websocket] enabling... [yang-express] registering a new link [yang-express] registered 'link:cord-core' [yang-express] registering a new link [yang-express] registered 'link:xos-core' [websocket] binding to server [websocket] enabled ok
An option --port
is provided to specify the port to listen on, it can be used with:
npm start -- --port 3000
To run the test suite, first install the dependencies, then run npm test
.
$ npm install $ npm test
Mocha test suite is currently under development...