From c87bb029bdc730ba1412d63c60580de7a09e34ef 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 93cd09b..32b4552 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -448,33 +448,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