namespace "urn:ietf:params:xml:ns:yang:nfvo:instantiation-parameters";
prefix "instantiation-parameters";
- import rw-project {
- prefix "rw-project";
- }
-
import nsd {
prefix "nsd";
}
prefix "vnfd";
}
- import nsr {
- prefix "nsr";
- }
-
import ietf-inet-types {
prefix "inet";
}
description "Initial version";
}
- grouping ns_instantiate {
- leaf nsName {
+ grouping netslice_params {
+ leaf vimAccountId {
mandatory true;
type string;
}
- leaf nsDescription {
+ leaf ssh_keys {
type string;
}
- leaf nsdId {
+ list netslice-subnet {
+ key "id";
+ uses netslice_subnet_params;
+ }
+ list netslice-vld {
+ key "name";
+ uses vld_params;
+ }
+ }
+
+ grouping netslice_subnet_params {
+ leaf id {
mandatory true;
- type leafref {
- path "/nsd:nsd-catalog/nsd:nsd/nsd:id";
- }
+ type string;
}
+ uses ns_params;
+ }
+
+ grouping ns_params {
leaf vimAccountId {
mandatory true;
type string;
leaf ssh_keys {
type string;
}
- leaf nsr_id {
- config false;
- type leafref {
- path "/rw-project:project/nsr:ns-instance-opdata/nsr:nsr/nsr:ns-instance-config-ref";
- }
- }
list vnf {
key "member-vnf-index";
- uses vnf;
+ uses vnf_params;
}
list vld {
key "name";
- uses vld;
+ uses vld_params;
}
}
- grouping vnf {
+ grouping vnf_params {
leaf member-vnf-index{
mandatory true;
type string;
}
list vdu {
key "id";
- uses ns_instantiate_vdu;
+ uses vdu_params;
}
list internal-vld {
key "name";
- uses ns-instantiate-internal-vld;
+ uses internal_vld_params;
}
}
- grouping vld {
+ grouping vld_params {
leaf name {
type string;
}
}
}
- grouping ns_instantiate_vdu {
+ grouping vdu_params {
leaf id {
mandatory true;
type string;
}
}
- grouping ns-instantiate-internal-vld {
+ grouping internal_vld_params {
leaf name {
mandatory true;
type string;
}
}
-}
\ No newline at end of file
+}