From b83e4882240b99b559bc33c8f8efdd77d51316a6 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Mon, 16 Sep 2019 15:23:44 -0700 Subject: [PATCH] Bug#253 --- src/yang/etsi-nfv-ns.yang | 40 ++++++++++++++++++-------------------- src/yang/etsi-nfv-nsd.yang | 9 +++++++-- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index 2b12612..94f8cfc 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 ad3d05d..f74f00a 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 -- GitLab