diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index 24fa397ff071f746f923b5724871d23ec13ca078..ea46ecc5564346d5154018bd1ed74ffc2dbcb6d9 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -426,7 +426,7 @@ submodule etsi-nfv-ns { list nfp-position-element { key "id"; - min-elements 1; + min-elements 1; leaf id { type string; @@ -476,18 +476,19 @@ submodule etsi-nfv-ns { CpdInConstituentElement information element"; } - choice constituent-cpd-id { - container vnf { - leaf vnfd-id { - must ". = deref(../../vnfd-profile-id)/../vnfd-id" { - } - type leafref { - path "/nfv:nfv/nfv:vnfd/nfv:id"; + choice constituent-cpd-id { + container vnf { + leaf vnfd-id { + must ". = deref(../../vnfd-profile-id)/../vnfd-id" { + } + type leafref { + path "/nfv:nfv/nfv:vnfd/nfv:id"; + } } - } - leaf cpd-id { - type leafref { - path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id"; + leaf cpd-id { + type leafref { + path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id"; + } } } container pnf { @@ -495,16 +496,13 @@ submodule etsi-nfv-ns { must ". = deref(../../pnfd-profile-id)/../pnfd-id" { } type leafref { - path "../../../../../../pnfd/id"; + path "/nfv:nfv/nfv:pnfd/nfv:id"; } } - type leafref { - path "/nfv:nfv/nfv:pnfd/nfv:id"; - } - } - leaf pnf-cpd-id { - type leafref { - path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id"; + leaf pnf-cpd-id { + type leafref { + path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id"; + } } } container ns { @@ -533,7 +531,7 @@ submodule etsi-nfv-ns { CpdInConstituentElement information element"; } description - "Identifies a CPD or SAPD in the context of a profile + "Specifies a CPD or SAPD in the context of a profile of an NS constituent element."; reference "GS NFV IFA014: Section 6.4.6.2 NfpPositionElement diff --git a/src/yang/etsi-nfv-nsd.yang b/src/yang/etsi-nfv-nsd.yang index 94ae6d036c4faa10f3bca6faedea0256673213f2..304fc30e19f93ead8831dc49a57dd6d382b9f85a 100644 --- a/src/yang/etsi-nfv-nsd.yang +++ b/src/yang/etsi-nfv-nsd.yang @@ -4,7 +4,7 @@ module etsi-nfv-nsd { prefix nsd; import etsi-nfv-descriptors { - prefix vnf; + prefix nfv; } organization @@ -31,7 +31,7 @@ module etsi-nfv-nsd { list nsd { key "id"; max-elements 1; - uses vnf:nsd; + uses nfv:nsd; description "The NSD information element is a deployment template whose instances are used by the NFVO for the lifecycle management