From 8568142597d5a5526a8e40589748c2ae794f8703 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Mon, 17 Dec 2018 10:18:18 -0800 Subject: [PATCH 1/2] Proposed fix for bug 87 --- src/yang/etsi-nfv-vnf.yang | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index 0ee785a..01ca9dd 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -81,17 +81,16 @@ submodule etsi-nfv-vnf { "GS NFV-IFA011: Section 7.1.6.6, VirtualNetworkInterfaceRequirements information element"; } + leaf niclo-requirements { - mandatory true; - type string; // remove once leafref is resolved. - //type leafref { - // add path statement here to logical-node-data. - //} + type leafref { + path "/nfv/vnfd/virtual-compute-descriptor/id"; + } description - "This references (couples) the CPD with any logical node I/O - requirements (for network devices) that may have been - created. Linking these attributes is necessary so that so - that I/O requirements that need to be articulated at the + "This references (couples) the CPD with any logical node + I/O requirements (for network devices) that may have been + created. Linking these attributes is necessary so that + I/O requirements that need to be articulated at the logical node level can be associated with the network interface requirements associated with the CPD."; reference -- GitLab From 238b419d960213aa789555e0b345ab6d95fecbe3 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Thu, 3 Jan 2019 16:22:39 -0800 Subject: [PATCH 2/2] Fixing spelling --- src/yang/etsi-nfv-vnf.yang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index 01ca9dd..9a9bd1d 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -82,7 +82,7 @@ submodule etsi-nfv-vnf { VirtualNetworkInterfaceRequirements information element"; } - leaf niclo-requirements { + leaf nicio-requirements { type leafref { path "/nfv/vnfd/virtual-compute-descriptor/id"; } -- GitLab