+.. 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
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'; }
}
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 {