Fix for bug#218

This is a proposed fix to deal with lifecycleManagementScript.event which is a leaf (scalar), while IFA011 defines it as a 0..N attribute.

Since lifecycleManagementScript itself is a list, the list requires a key. None of the attributes in that information element qualify for being a key, because they are not unique. So this merge requests not only changes lifecycleManagementScript.event to a array of events by making it a leaf-list, but also adds a new attribute called 'id' which will act as a key.

Edited by jethanandani

Merge request reports

Loading
+8 −2
Changes for src/yang/etsi-nfv-vnf.yang: 8 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2484,14 +2484,20 @@ submodule etsi-nfv-vnf {
      }

      list lifecycle-management-script {
        key "event";
        key "id";
        description
          "Includes a list of events and corresponding management
           scripts performed for the VNF.";
        reference
          "GS NFV IFA011: Section 7.1.2 VNFD information element";

        leaf event {
        leaf id {
          type string;
          description
            "A unique string that identfies the script in question.";
	}

        leaf-list event {
          type internal-lifecycle-management-script-event;
          description
            "Describes VNF lifecycle event(s) or an external stimulus
Loading