diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index 2b12612efee6dcca134df2ed374de0e9ffa9713e..94f8cfcabb23d45b8ce56bb06a72153a0d58daf6 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -418,7 +418,7 @@ submodule etsi-nfv-ns { list nfp-position-element { key "id"; - min-elements 1; + min-elements 1; leaf id { type string; @@ -468,18 +468,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 { @@ -487,16 +488,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 { @@ -525,7 +523,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 ad3d05df04327b00f511d3ffc17da85101f14e96..f74f00abe9eccfc4384cfd86f98ede8f34d50d80 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 @@ -13,6 +13,11 @@ module etsi-nfv-nsd { description "Network Services Descriptors"; + revision 2019-10-01 { + description + "Revision 2.7.1. + NSD according to ETSI GS NFV-IFA 014 Ed271v264."; + } revision 2019-04-25 { description "Initial revision. @@ -23,7 +28,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