update to latest yang-express/yang-js, addresses issue reported by Matteo for running multiple instances of the yang-express server app during 'supertest', adds support for granular model event subscription using XPATH, change the 'humanReadableName' property to 'label'
diff --git a/package.json b/package.json
index 4e41118..951e5d9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "yang-cord",
- "version": "1.0.9",
+ "version": "1.1.0",
"description": "YANG model-driven CORD",
"author": "Peter K. Lee <peter@corenova.com>",
"license": "Apache-2.0",
@@ -32,8 +32,8 @@
"minimist": "^1.2.0",
"node-uuid": "^1.4.7",
"superagent": "^2.0.0",
- "yang-express": "^0.3.1",
- "yang-js": "^0.15.8"
+ "yang-express": "^0.3.2",
+ "yang-js": "^0.15.11"
},
"optionalDependencies": {
"corenova": "^1.0.0"
diff --git a/schema/cord-core.yang b/schema/cord-core.yang
index 584cf28..18b9f47 100644
--- a/schema/cord-core.yang
+++ b/schema/cord-core.yang
@@ -40,7 +40,7 @@
description
"Authorative list of all subscriber instances";
- leaf humanReadableName {
+ leaf label {
config false;
type string {
pattern '^cordSubscriber-\w+$';
diff --git a/src/cord-core.coffee b/src/cord-core.coffee
index c4f7ac7..abbff2f 100644
--- a/src/cord-core.coffee
+++ b/src/cord-core.coffee
@@ -11,7 +11,7 @@
module.exports = require('../schema/cord-core.yang').bind {
- '/cord:subscriber/humanReadableName': -> "cordSubscriber-#{@get '../id'}"
+ '/cord:subscriber/label': -> "cordSubscriber-#{@get '../id'}"
'/cord:subscriber/delete': (input, resolve, reject) -> reject "not yet implemented"
}