From c04eafecf8faddb9ca1fc0f9b2289258d3523d06 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Tue, 5 Feb 2019 16:41:47 -0800 Subject: [PATCH] added a missing mandatory statement --- src/yang/etsi-nfv-ns.yang | 53 ++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index 1fef953..8e77ebe 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -446,33 +446,34 @@ submodule etsi-nfv-ns { } choice constituent-base-element-id { - container vnf-profile { - leaf vnf-profile-id { - must ". = deref(../../vnfd-profile-id)" { - } - type leafref { - path "/nfv/nsd/df/vnf-profile/id"; - } - } - } - container pnf-profile { - leaf pnf-profile-id { - must ". = deref(../../pnfd-profile-id)" { - } - type leafref { - path "/nfv/nsd/df/pnf-profile/id"; - } - } - } + mandatory "true"; + container vnf-profile { + leaf vnf-profile-id { + must ". = deref(../../vnfd-profile-id)" { + } + type leafref { + path "/nfv/nsd/df/vnf-profile/id"; + } + } + } + container pnf-profile { + leaf pnf-profile-id { + must ". = deref(../../pnfd-profile-id)" { + } + type leafref { + path "/nfv/nsd/df/pnf-profile/id"; + } + } + } container ns-profile { - leaf ns-profile-id { - must ". = deref(../../ns-profile-id)" { - } - type leafref { - path "/nfv/nsd/df/ns-profile/id"; - } - } - } + leaf ns-profile-id { + must ". = deref(../../ns-profile-id)" { + } + type leafref { + path "/nfv/nsd/df/ns-profile/id"; + } + } + } description "Reference to the profile of an NS constituent."; reference -- GitLab