Add license to the release documentation and requirements doc
[promise.git] / docs / requirements / schemas.rst
index de9d9f8..c98b7da 100644 (file)
@@ -1,3 +1,6 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
 .. _yang_schema:
 
 ANNEX B: Promise YANG schema based on YangForge
@@ -39,6 +42,15 @@ ANNEX B: Promise YANG schema based on YangForge
     description "When enabled, provides resource management across multiple providers";
   }
 
+  typedef reference-identifier {
+    description "defines valid formats for external reference id";
+    type union {
+      type yang:uuid;
+      type inet:uri;
+      type uint32;
+    }
+  }
+
   grouping resource-utilization {
     container capacity {
       container total     { description 'Conceptual container that should be extended'; }
@@ -557,19 +569,18 @@ ANNEX B: Promise YANG schema based on YangForge
       }
       leaf name   { type string; mandatory true; }
       leaf image  {
-        type union {
-          type yang:uuid;
-          type inet:uri;
-        }
+        type reference-identifier;
         mandatory true;
       }
       leaf flavor {
-        type union {
-          type yang:uuid;
-          type inet:uri;
-        }
+        type reference-identifier;
         mandatory true;
       }
+      leaf-list networks {
+        type reference-identifier;
+        description "optional, will assign default network if not provided";
+      }
+
       // TODO: consider supporting a template-id (such as HEAT) for more complex instantiation
 
       leaf reservation-id {