completed REST/JSON interface generation integration with yang-js and yang-express. now supports complete CRUD operations against the subscriber model. need to update documentation to reflect latest changes
diff --git a/schema/cord-core.yang b/schema/cord-core.yang
index 25d3d3a..b399362 100644
--- a/schema/cord-core.yang
+++ b/schema/cord-core.yang
@@ -33,27 +33,26 @@
/*** primary configuration tree for this module ***/
- container cord {
- list subscriber {
- uses csub:subscriber-controller;
- key "id";
+ list subscriber {
+ uses csub:subscriber-controller;
+ key "id";
- description
- "Authorative list of all subscriber instances";
+ description
+ "Authorative list of all subscriber instances";
- leaf humanReadableName {
- config false;
- type string {
- pattern '^cordSubscriber-\w+$';
- }
+ leaf humanReadableName {
+ config false;
+ type string {
+ pattern '^cordSubscriber-\w+$';
}
- action delete;
+ }
+ action delete;
+ }
+
+ // here we augment the /api/tenant API configuration tree in 'xos' module
+ augment "/xos:api/xos:tenant" {
+ container cord {
+ node:link subscriber { path "/cord:subscriber"; }
}
}
-
- // here we augment the /api/tenant/cord API configuration tree in 'xos' module
- augment "/xos:api/xos:tenant" {
- container cord { node:map "/cord:cord"; }
- }
-
}