diff --git a/example-data/nfv.xml b/example-data/nfv.xml
index a956b2b51ebb5f5c36cab9095f918b8eefc8bded..2b5909b3e38a11db7aa7d24448bd13eff10d3002 100644
--- a/example-data/nfv.xml
+++ b/example-data/nfv.xml
@@ -80,14 +80,14 @@
double
- firewall
+ firewall
2
single
- firewall
+ firewall
1
@@ -175,14 +175,14 @@
double
- router
+ router
2
single
- router
+ router
1
diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang
index 112fe39331226468666ad931b5e489ee36f659f2..971076b7fe7e426e2cce8eeace6f2c9255bb4c10 100755
--- a/src/yang/etsi-nfv-vnf.yang
+++ b/src/yang/etsi-nfv-vnf.yang
@@ -1610,7 +1610,7 @@ submodule etsi-nfv-vnf {
information element";
}
list vdu-level {
- key "id";
+ key "vdu-id";
min-elements 1;
description
"Sets the number of instances for the VDU in this
@@ -1618,7 +1618,8 @@ submodule etsi-nfv-vnf {
reference
"GS NFV IFA011: Section 7.1.8.7 InstantiationLevel
information element";
- leaf id {
+
+ leaf vdu-id {
type leafref {
path "../../../../nfv:vdu/nfv:id";
}
@@ -1631,10 +1632,10 @@ submodule etsi-nfv-vnf {
leaf number-of-instances {
type uint16;
must ". <= ../../../../nfv:df/" +
- "nfv:vdu-profile[id=current()/../nfv:id]/" +
+ "nfv:vdu-profile[id=current()/../nfv:vdu-id]/" +
"nfv:max-number-of-instances";
must ". >= ../../../../nfv:df/" +
- "nfv:vdu-profile[id=current()/../nfv:id]/" +
+ "nfv:vdu-profile[id=current()/../nfv:vdu-id]/" +
"nfv:min-number-of-instances";
default 1;
description