From 5c0a9e76be88cbb557092a0f11eed5236b7ea9da Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Thu, 21 Mar 2019 10:53:15 -0700 Subject: [PATCH] Fix for bug#224 --- example-data/nfv.xml | 8 ++++---- src/yang/etsi-nfv-vnf.yang | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/example-data/nfv.xml b/example-data/nfv.xml index b29a396..aef5a9b 100644 --- a/example-data/nfv.xml +++ b/example-data/nfv.xml @@ -25,7 +25,7 @@ asa-vsd asa-image - + asa-vcd 4.0 @@ -33,7 +33,7 @@ 2 - + asa-vsd root @@ -120,7 +120,7 @@ csr-vsd csr-image - + csr-vcd 4.0 @@ -128,7 +128,7 @@ 2 - + csr-vsd root diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index d8fda8b..3734f04 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -88,7 +88,7 @@ submodule etsi-nfv-vnf { leaf nicio-requirements { type leafref { - path "/nfv/vnfd/virtual-compute-descriptor/id"; + path "/nfv/vnfd/virtual-compute-desc/id"; } description "This references (couples) the CPD with any logical node I/O @@ -290,10 +290,9 @@ submodule etsi-nfv-vnf { } leaf virtual-compute-desc { type leafref { - path "../../nfv:virtual-compute-descriptor/" + - "nfv:id"; + path "../../nfv:virtual-compute-desc/nfv:id"; } - must "../../nfv:virtual-compute-descriptor[id=current()]/" + + must "../../nfv:virtual-compute-desc[id=current()]/" + "nfv:virtual-memory/size >=" + "../../nfv:sw-image-desc[id=current()/" + "../sw-image-desc]/min-ram" { @@ -414,7 +413,7 @@ submodule etsi-nfv-vnf { } } - list virtual-compute-descriptor { + list virtual-compute-desc { key "id"; description "Defines descriptors of virtual compute resources to be -- GitLab