"The value should be greyed out by the UI.
Only applies to parameters with default values.";
type boolean;
+ default false;
}
leaf hidden {
"The value should be hidden by the UI.
Only applies to parameters with default values.";
type boolean;
+ default false;
+ }
+
+ leaf out {
+ description "If this is an output of the primitive execution";
+ type boolean;
+ default false;
+ }
+ leaf parameter-type {
+ description "Type of this parameter, whether this in IN or OUT";
+ type enumeration {
+ enum OUT;
+ enum IN;
+ }
+ default "IN";
+ }
+ leaf parameter-path {
+ description "A Leafref to the parameter path with the attribute selection.
+ At present only attribute ip-address() is supported.
+ For example, to get the ip address of VNF connection point
+ the xpath would look something along the following lines,
+ /vnfd-catalog/vnfd[id='x']/connection-point[name='cp']/ip-address()";
+ type string;
}
}
}
}
- list service-primitive {
- rwpb:msg-new ServicePrimitive;
+ list config-primitive {
+ rwpb:msg-new ConfigPrimitive;
description
- "List of service primitives supported by the
+ "List of config primitives supported by the
configuration agent for this VNF.";
key "name";
leaf name {
description
- "Name of the service primitive.";
+ "Name of the config primitive.";
type string;
}
list parameter {
description
- "List of parameters to the service primitive.";
+ "List of parameters to the config primitive.";
key "name";
uses primitive-parameter;
}
type uint64;
}
- leaf name {
- description
- "Name of the configuration primitive.";
- type string;
- }
+ choice primtive-type {
+ case primtive-definition {
+ leaf name {
+ description
+ "Name of the configuration primitive.";
+ type string;
+ }
- list parameter {
- key "name";
- leaf name {
- type string;
+ uses primitive-parameter-value;
}
- leaf value {
- type string;
+ case primitive-ref {
+ leaf config-primtive-ref {
+ description
+ "Reference to a config primitive name.
+ NOTE: The config primitive referred should have
+ all the input paramaters predefined either
+ with default values or dependency references.";
+ type leafref {
+ path "../../config-primitive/name";
+ }
+ }
}
}
}