From 7397b9db5323d29b24216955a7b093551cd92cc0 Mon Sep 17 00:00:00 2001 From: Bertrand Souville Date: Mon, 1 Feb 2016 12:03:53 +0100 Subject: Various bug fixes Change-Id: Ia4c69a1f0e97b248308900818370c2340c8cc9c4 Signed-off-by: Bertrand Souville (cherry picked from commit 7437f0783c95f448851217b85faf4ddafa1498b1) --- docs/requirements/schemas.rst | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'docs/requirements/schemas.rst') diff --git a/docs/requirements/schemas.rst b/docs/requirements/schemas.rst index de9d9f8..c8081b6 100644 --- a/docs/requirements/schemas.rst +++ b/docs/requirements/schemas.rst @@ -39,6 +39,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 +566,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 { -- cgit 1.2.3-korg