diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index 1bd7e771bfd2526c35e16ac2517b223588d4f654..843a49eb4bc248ac7e7553ce8f6764e8449e4473 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -2884,6 +2884,68 @@ submodule etsi-nfv-vnf { element"; } + list supported-coordination-actions { + key "vnf-lcm-operation"; + + description + "References applicable LCM coordination actions + that can be invoked during each of the listed + VNF LCM operations."; + reference + "GS NFV IFA011: Section 7.1.8.2 VnfDf information + element"; + + leaf vnf-lcm-operation { + type enumeration { + enum "instantiate"; + enum "scale"; + enum "scale_to_level"; + enum "change_flavour"; + enum "terminate"; + enum "heal"; + enum "operate"; + enum "change_ext_conn"; + enum "modify_info"; + enum "create_snapshot"; + enum "revert_to_snapshot"; + } + description + "Identifies the specific VNF LCM operation. + Values: + • INSTANTIATE + • SCALE + • SCALE_TO_LEVEL + • CHANGE_FLAVOUR + • TERMINATE + • HEAL + • OPERATE + • CHANGE_EXT_CONN + • MODIFY_INFO + • CREATE_SNAPSHOT + • REVERT_TO_SNAPSHOT."; + reference + "GS NFV IFA011: Section 7.1.16.3 LcmCoordinationActionMapping + information element"; + } + leaf coordination-action-name { + type leafref { + path "../../../lcm-operations-coordination/coordination-action-name"; + } + description + "References to the names of coordination actions that can be + invoked during the LCM operation indicated by the + 'vnfLcmOperation' attribute. + + The related coordination actions shall either be declared + in the VnfLcmOperationCoordination information element + in the same VNFD, or shall be well-known standardized + coordination action name identifiers."; + reference + "GS NFV IFA011: Section 7.1.16.3 LcmCoordinationActionMapping + information element"; + } + } + list monitoring-parameter { key "id"; @@ -3805,13 +3867,14 @@ submodule etsi-nfv-vnf { information element"; } - leaf coordination-id { + leaf coordination-action-name { type leafref { - path "../../lcm-operations-coordination/id"; + path "../../lcm-operations-coordination/coordination-action-name"; } description - "Reference to applicable VNF LCM operation coordination - actions."; + "Reference to applicable VNF LCM operation coordination actions + that can be invoked during a VNF package change as defined by + the 'selector' attribute."; reference "GS NFV IFA011: Section 7.1.15.2 VnfPackageChangeInfo information element"; @@ -3840,13 +3903,13 @@ submodule etsi-nfv-vnf { } list lcm-operations-coordination { - key "id"; + key "coordination-action-name"; - leaf id { + leaf coordination-action-name { type string; description "Identifies the specific VNF LCM operation coordination - action."; + action.Shall be unique within the scope of VNFD"; reference "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination information element"; @@ -3880,24 +3943,67 @@ submodule etsi-nfv-vnf { } leaf coordination-stage { - type string; + type enumeration { + enum "start"; + enum "end"; + } description - "Indicates the coordination stage during the VNF LCM - operation."; + "Indicates whether the coordination action is invoked before + or after all other changes performed by the VNF LCM + operation. + Values: + • START:the coordination action is invoked after receiving + the grant and before the LCM operation performs any + other changes. + • END:the coordination action is invoked after the LCM + operation has performed all other changes. + + This attribute shall be omitted if the coordination action + is intended to be invoked at an intermediate stage of the + LCM operation, i.e. neither at the start nor at the end. + In this case, the actual instant during the LCM operation + when invoking the coordination is determined by means outside + the scope of the present document such as VNFM-internal logic + or LCM script."; reference "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination information element"; } - leaf coordination-params { - type string; + list input-parameter { + key "key"; + + leaf key { + type string; + } + leaf value { + type string; + } description - "Input information needed by the external coordinating + "Input parameter needed by the external coordinating entity."; reference "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination information element"; } + + list output-parameter { + key "key"; + + leaf key { + type string; + } + leaf value { + type string; + } + description + "Output parameter provided by the external coordinating + entity."; + reference + "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination + information element"; + } + description "Provides information used for the coordination in VNF LCM operations.";