aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/cps-bookstore.yang61
-rw-r--r--samples/cps.yaml22
2 files changed, 83 insertions, 0 deletions
diff --git a/samples/cps-bookstore.yang b/samples/cps-bookstore.yang
new file mode 100644
index 0000000..0bfbfb7
--- /dev/null
+++ b/samples/cps-bookstore.yang
@@ -0,0 +1,61 @@
+module stores {
+ yang-version 1.1;
+ namespace "org:onap:ccsdk:sample";
+
+ prefix book-store;
+
+ revision "2020-09-15" {
+ description
+ "Sample Model";
+ }
+ container shops {
+
+ container bookstore {
+
+ leaf bookstore-name {
+ type string;
+ }
+
+ leaf name {
+ type string;
+ }
+
+ list categories {
+
+ key "code";
+
+ leaf code {
+ type uint16;
+ }
+
+ leaf name {
+ type string;
+ }
+
+ leaf numberOfBooks {
+ type uint16;
+ }
+
+ container books {
+
+ list book {
+ key title;
+
+ leaf title {
+ type string;
+ }
+ leaf price {
+ type uint16;
+ }
+ leaf-list label {
+ type string;
+ }
+ leaf-list edition {
+ type string;
+ }
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/samples/cps.yaml b/samples/cps.yaml
new file mode 100644
index 0000000..4c06fa6
--- /dev/null
+++ b/samples/cps.yaml
@@ -0,0 +1,22 @@
+# CPS Sample
+odpSchemaVersion: 1.1
+resources:
+ cps-dataspaces:
+ - cps-dataspace:
+ dataspace-name: test-odp-dataspace
+ schema-sets:
+ - schema-set-name: &schema-set-name test-odp-schema-set
+ schema-set-file: samples/cps-bookstore.yang
+ anchors:
+ - anchor-name: test-odp-anchor
+ schema-set-name: *schema-set-name
+ cps-schema-sets:
+ - cps-schema-set:
+ schema-set-name: test-odp-schemaset
+ dataspace-name: test-odp-dataspace
+ schema-set-file: samples/cps-bookstore.yang
+ cps-anchors:
+ - cps-anchor:
+ anchor-name: test-odp-anchor
+ schema-set-name: test-odp-schemaset
+ dataspace-name: test-odp-dataspace