From 081346e04be37ede6b6f6195b0ec138eb338b6ca Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Wed, 20 Mar 2019 18:29:10 -0700 Subject: [PATCH] Fix for bug#226 --- example-data/nfv.xml | 14 ++++++++++++++ src/yang/etsi-nfv-vnf.yang | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/example-data/nfv.xml b/example-data/nfv.xml index b29a396..01fa58b 100644 --- a/example-data/nfv.xml +++ b/example-data/nfv.xml @@ -41,9 +41,16 @@ asa-image + ASA image + 1.1 + + sha-224 + deadbeef + bare qcow2 2.0 + 1 http://www.cisco.com/asa.qcow2 @@ -136,9 +143,16 @@ csr-image + CSR image + 1.1 + + sha-224 + deadbeef + bare qcow2 2.0 + 1 http://www.cisco.com/csr.qcow2 diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index d8fda8b..306b32f 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -812,6 +812,7 @@ submodule etsi-nfv-vnf { information element"; } leaf name { + mandatory true; type string; description "The name of this software image."; @@ -819,7 +820,9 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5 SwImageDesc information element."; } + leaf version { + mandatory true; type string; description "The version of this software image."; @@ -827,8 +830,11 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5 SwImageDesc information element."; } + container checksum { + leaf algorithm { + mandatory true; type identityref { base checksum-algorithm; } @@ -839,7 +845,9 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.10 ChecksumData information element."; } + leaf hash { + mandatory true; type string; description "Contains the result of applying the algorithm @@ -855,6 +863,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5 SwImageDesc information element."; } + leaf container-format { default "bare"; type enumeration { @@ -895,6 +904,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5 SwImageDesc information element."; } + leaf disk-format { default "qcow2"; type enumeration { @@ -953,6 +963,7 @@ submodule etsi-nfv-vnf { "The disk format of a software image is the format of the underlying disk image."; } + leaf min-disk { type uint64; units "GB"; @@ -967,6 +978,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5, SwImageDesc information element."; } + leaf min-ram { type decimal64 { fraction-digits 1; @@ -984,7 +996,9 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5, SwImageDesc information element."; } + leaf size { + mandatory true; type uint64; units "GB"; description @@ -993,6 +1007,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5, SwImageDesc information element."; } + leaf image { default "."; type inet:uri; @@ -1004,6 +1019,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5, SwImageDesc information element."; } + leaf operating-system { type string; description @@ -1014,6 +1030,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.6.5, SwImageDesc information element."; } + leaf-list supported-virtualization-environment { type string; description -- GitLab