Commit aea79ca8 authored by ppree's avatar ppree
Browse files

issue#34 Addressing VnfLcmOperation coordination based on IFA011ed351

parent 48fd1d37
Loading
Loading
Loading
Loading
Loading
+123 −15
Changes for src/yang/etsi-nfv-vnf.yang: 123 added lines, 15 removed lines.
Original line number Original line Diff line number Diff line
@@ -2672,6 +2672,68 @@ submodule etsi-nfv-vnf {
             element";
             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 {
      list monitoring-parameter {
        key "id";
        key "id";


@@ -3523,13 +3585,14 @@ submodule etsi-nfv-vnf {
           information element";
           information element";
      }
      }


      leaf coordination-id {
      leaf coordination-action-name {
        type leafref {
        type leafref {
          path "../../lcm-operations-coordination/id";
          path "../../lcm-operations-coordination/coordination-action-name";
        }
        }
        description
        description
          "Reference to applicable VNF LCM operation coordination
          "Reference to applicable VNF LCM operation coordination actions
           actions.";
           that can be invoked during a VNF package change as defined by
           the 'selector' attribute.";
        reference
        reference
          "GS NFV IFA011: Section 7.1.15.2 VnfPackageChangeInfo
          "GS NFV IFA011: Section 7.1.15.2 VnfPackageChangeInfo
           information element";
           information element";
@@ -3558,13 +3621,13 @@ submodule etsi-nfv-vnf {
    }
    }


    list lcm-operations-coordination {
    list lcm-operations-coordination {
      key "id";
      key "coordination-action-name";


      leaf id {
      leaf coordination-action-name {
        type string;
        type string;
        description
        description
          "Identifies the specific VNF LCM operation coordination
          "Identifies the specific VNF LCM operation coordination
           action.";
           action.Shall be unique within the scope of VNFD";
        reference
        reference
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
           information element";
           information element";
@@ -3586,36 +3649,81 @@ submodule etsi-nfv-vnf {
        }
        }
        description
        description
          "Specifies the type of the endpoint exposing the LCM
          "Specifies the type of the endpoint exposing the LCM
           operation coordination such as other operations supporting
           operation coordination such as operations supporting
           or management systems (e.g. an EM) or the VNF instance.
           management systems (e.g. EM) or the VNF instance.
           Allowed values:
           Allowed values:
           • MGMT: coordination with other operation supporting
           • MGMT: coordination with operation supporting
                   management systems.
                   management systems.
           • VNF: coordination with the VNF instance.";
           • VNF: coordination with the VNF instance.

           If this attribute is omitted, the endpoint that provides
           the interface will be determined at deployment time.

           If the VNF produces the LCM coordination interface, this
           attribute may be omitted or may have the value 'VNF', and
           a VnfInterfaceDetails entry with the 'interfaceName'
           attribute set to 'VNF_LCM_COORDINATION' shall be specified
           in the related deployment flavour to signal where this
           interface is exposed by the VNF.

           If the VNF does not produce the LCM coordination interface
           but coordination via this interface is needed, it is expected
           that a management entity such as the EM exposes the coordination
           interface, and consequently, this attribute shall have the
           value 'MGMT'.";
        reference
        reference
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
           information element";
           information element";
      }
      }


      leaf coordination-stage {
      leaf coordination-stage {
        type enumeration {
          enum "start";
          enum "end";
        }
        description
          "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 input-parameter {
        type string;
        type string;
        description
        description
          "Indicates the coordination stage during the VNF LCM
          "Input parameter needed by the external coordinating
           operation.";
           entity.";
        reference
        reference
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
           information element";
           information element";
      }
      }


      leaf coordination-params {
      leaf output-parameter {
        type string;
        type string;
        description
        description
          "Input information needed by the external coordinating
          "Output parameter provided by the external coordinating
           entity.";
           entity.";
        reference
        reference
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
          "GS NFV IFA011: Section 7.1.16.2 VnfLcmOperationCoordination
           information element";
           information element";
      }
      }

      description
      description
        "Provides information used for the coordination in VNF LCM
        "Provides information used for the coordination in VNF LCM
         operations.";
         operations.";