From d1fb2181ee9572dbaa7c58def1b8312ba7a5cbd2 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Thu, 11 Apr 2019 12:42:04 -0700 Subject: [PATCH] Address comments received in SOL#96 --- example-data/nfv.xml | 24 ++++++++++++++++++++++++ src/yang/etsi-nfv-common.yang | 6 +++--- src/yang/etsi-nfv-ns.yang | 13 +++++++------ src/yang/etsi-nfv-vnf.yang | 14 +++++++------- 4 files changed, 41 insertions(+), 16 deletions(-) diff --git a/example-data/nfv.xml b/example-data/nfv.xml index 7eb8ac8..3368af1 100644 --- a/example-data/nfv.xml +++ b/example-data/nfv.xml @@ -43,6 +43,7 @@ asa-image bare qcow2 + 1 2.0 http://www.cisco.com/asa.qcow2 @@ -92,6 +93,17 @@ single + + + true + + + 1 + + + 1 + + @@ -138,6 +150,7 @@ csr-image bare qcow2 + 1 2.0 http://www.cisco.com/csr.qcow2 @@ -187,6 +200,17 @@ single + + + true + + + 1 + + + 1 + + diff --git a/src/yang/etsi-nfv-common.yang b/src/yang/etsi-nfv-common.yang index b823788..8dabf7b 100644 --- a/src/yang/etsi-nfv-common.yang +++ b/src/yang/etsi-nfv-common.yang @@ -469,7 +469,7 @@ submodule etsi-nfv-common { when "../type='mac-address'"; leaf mac-address-assignment { type boolean; - default true; + mandatory true; description "Specify if the MAC address assignment is the responsibility of management and orchestration function @@ -495,7 +495,7 @@ submodule etsi-nfv-common { when "../type='ip-address'"; leaf ip-address-assignment { type boolean; - default "true"; + mandatory true; description "Specify if the address assignment is the responsibility of management and orchestration function or not. If it @@ -508,7 +508,7 @@ submodule etsi-nfv-common { leaf floating-ip-activated { type boolean; - default "true"; + mandatory true; description "Specify if the floating IP scheme is activated on the CP or not."; diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index 6b92820..de25c38 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -754,7 +754,7 @@ submodule etsi-nfv-ns { } leaf min-number-of-instances { - default 1; + mandatory true; type uint16; description "Minimum number of instances of the VNF based on this @@ -765,7 +765,7 @@ submodule etsi-nfv-ns { } leaf max-number-of-instances { - default 1; + mandatory true; type uint16; description "Maximum number of instances of the VNF based on this @@ -1178,7 +1178,7 @@ submodule etsi-nfv-ns { } leaf number-of-instances { - default 1; + mandatory true; type uint32; description "Specifies the number of VNF instances required for @@ -1238,7 +1238,7 @@ submodule etsi-nfv-ns { } leaf number-of-instances { - default 1; + mandatory true; type uint32; description "Specifies the number of nested NS instances required @@ -1342,9 +1342,10 @@ submodule etsi-nfv-ns { "GS NFV IFA014: Section 6.3.11.2 NsProfile information element"; } + leaf min-number-of-instances { type uint16; - default 1; + mandatory true; description "Minimum number of nested NS instances based on the referenced NSD that is permitted to exist for this @@ -1355,7 +1356,7 @@ submodule etsi-nfv-ns { } leaf max-number-of-instances { type uint16; - default 1; + mandatory true; description "Maximum number of nested NS instances based on the referenced NSD that is permitted to exist for this diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index 05f5c1e..7f653da 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -551,7 +551,7 @@ submodule etsi-nfv-vnf { range "0..max"; } units "GB"; - default 1; + mandatory true; description "Amount of virtual memory in GB."; reference @@ -749,7 +749,7 @@ submodule etsi-nfv-vnf { leaf size-of-storage { type uint64; units "GB"; - default 0; + mandatory true; description "Size of virtualised storage resource (e.g. size of volume, in GB)"; @@ -936,7 +936,7 @@ submodule etsi-nfv-vnf { leaf min-disk { type uint64; units "GB"; - default 0; + mandatory true; description "The minimal disk size requirement for this software image. The value of the 'size of storage' attribute @@ -1466,7 +1466,7 @@ submodule etsi-nfv-vnf { enum ipv4; enum ipv6; } - default "ipv4"; + mandatory true; description "Specifies IP version of this L3 protocol. Value: @@ -1783,7 +1783,7 @@ submodule etsi-nfv-vnf { leaf arbitrary-target-levels-supported { type boolean; - default "false"; + mandatory true; description "Signals whether scaling according to the parameter 'scaleInfo' is supported by this VNF."; @@ -1837,7 +1837,7 @@ submodule etsi-nfv-vnf { leaf min-graceful-termination { type yang:timeticks; - default "1"; + mandatory true; description "Minimum timeout value for graceful termination of a VNF instance."; @@ -1889,7 +1889,7 @@ submodule etsi-nfv-vnf { leaf min-graceful-stop-timeout { type yang:timeticks; - default "1"; + mandatory true; description "Minimum timeout value for graceful stop of a VNF instance."; -- GitLab