Commit 6b8c6407 authored by Mahesh Jethanandani's avatar Mahesh Jethanandani
Browse files

Address a syntax error

parent e886caab
Pipeline #1569 passed with stage
in 0 seconds
...@@ -24,6 +24,7 @@ module etsi-nfv-descriptors { ...@@ -24,6 +24,7 @@ module etsi-nfv-descriptors {
container nfv { container nfv {
list vnfd { list vnfd {
key "id"; key "id";
description description
"A VNF Descriptor (VNFD) is a deployment template which "A VNF Descriptor (VNFD) is a deployment template which
describes a VNF in terms of deployment and operational describes a VNF in terms of deployment and operational
......
...@@ -418,7 +418,7 @@ submodule etsi-nfv-ns { ...@@ -418,7 +418,7 @@ submodule etsi-nfv-ns {
list nfp-position-element { list nfp-position-element {
key "id"; key "id";
min-elements 1; min-elements 1;
leaf id { leaf id {
type string; type string;
...@@ -443,6 +443,7 @@ submodule etsi-nfv-ns { ...@@ -443,6 +443,7 @@ submodule etsi-nfv-ns {
} }
} }
} }
container pnf-profile { container pnf-profile {
leaf pnf-profile-id { leaf pnf-profile-id {
must ". = deref(../../pnfd-profile-id)" { must ". = deref(../../pnfd-profile-id)" {
...@@ -452,6 +453,7 @@ submodule etsi-nfv-ns { ...@@ -452,6 +453,7 @@ submodule etsi-nfv-ns {
} }
} }
} }
container ns-profile { container ns-profile {
leaf ns-profile-id { leaf ns-profile-id {
must ". = deref(../../ns-profile-id)" { must ". = deref(../../ns-profile-id)" {
...@@ -468,41 +470,41 @@ submodule etsi-nfv-ns { ...@@ -468,41 +470,41 @@ submodule etsi-nfv-ns {
CpdInConstituentElement information element"; CpdInConstituentElement information element";
} }
choice constituent-cpd-id { choice constituent-cpd-id {
container vnf { container vnf {
leaf vnfd-id { leaf vnfd-id {
must ". = deref(../../vnfd-profile-id)/../vnfd-id" { must ". = deref(../../vnfd-profile-id)/../vnfd-id" {
} }
type leafref { type leafref {
path "/nfv:nfv/nfv:vnfd/nfv:id"; path "/nfv:nfv/nfv:vnfd/nfv:id";
}
} }
} leaf cpd-id {
leaf cpd-id { type leafref {
type leafref { path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id"; }
} }
} }
container pnf { container pnf {
leaf pnfd-id { leaf pnfd-id {
must ". = deref(../../pnfd-profile-id)/../pnfd-id" { must ". = deref(../../pnfd-profile-id)/../pnfd-id" {
} }
type leafref { type leafref {
path "../../../../../../pnfd/id"; path "/nfv:nfv/nfv:pnfd/nfv:id";
} }
} }
type leafref { leaf pnf-cpd-id {
path "/nfv:nfv/nfv:pnfd/nfv: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 { container ns {
leaf nsd-id { leaf nsd-id {
must ". = deref(../../nested-ns-profile-id)/" + must ". = deref(../../nested-ns-profile-id)/" +
"../nsd-id" { "../nsd-id" {
} }
type leafref { type leafref {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment