Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleDrools Tosca Legacy Policy
collapsetrue
{
  "policy-id" : "operational.pnflegacy.createsubscription",
  "content" : "controlLoop%3A%0A%20%20version%3A%202.0.0%0A%20%20controlLoopName%3A%20ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b%0A%20%20trigger_policy%3A%20unique-policy-id-1-pnf%0A%20%20timeout%3A%2060%0A%20%20abatement%3A%20false%0Apolicies%3A%0A%20%20-%20id%3A%20unique-policy-id-1-pnf%0A%20%20%20%20name%3A%20pnf-cds-actor%0A%20%20%20%20description%3A%0A%20%20%20%20actor%3A%20CDS%0A%20%20%20%20recipe%3A%20create-subscription%0A%20%20%20%20target%3A%0A%20%20%20%20%20%20type%3A%20PNF%0A%20%20%20%20payload%3A%0A%20%20%20%20%20%20artifact_name%3A%20pm_control%0A%20%20%20%20%20%20artifact_version%3A%201.0.0%0A%20%20%20%20retry%3A%200%0A%20%20%20%20timeout%3A%2030%0A%20%20%20%20success%3A%20final_success%0A%20%20%20%20failure%3A%20final_failure%0A%20%20%20%20failure_timeout%3A%20final_failure_timeout%0A%20%20%20%20failure_retries%3A%20final_failure_retries%0A%20%20%20%20failure_exception%3A%20final_failure_exception%0A%20%20%20%20failure_guard%3A%20final_failure_guard"
}

...

Code Block
languagetext
titleDrools Tosca PolicyONSET Event
collapsetrue
{
  "closedLoopControlName": "ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b",
  "closedLoopAlarmStart": 1463679805324,
  "closedLoopEventClient": "microservice.pmsh",
  "closedLoopEventStatus": "ONSET",
  "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a56",
  "target_type": "PNF",
  "target": "pnf.pnf-name",
  "AAI": {
    "pnf.pnf-name": "pnf300"
  },
  "from": "DCAE",
  "version": "1.0.2",
  "additionalEventParams": {
    "nfName": "pnf300",
    "subscriptionName": "demo-subscription",
    "administrativeState": "UNLOCKED",
    "fileBasedGP": "15",
    "fileLocation": "test/pmx.xml"
  }
}

...

Code Block
languagetext
titleDrools Tosca CDS Request made by Policy
collapsetrue
commonHeader {
  requestId: "c7c6a4aa-bb61-4a15-b831-ba1472dd4a56"
  subRequestId: "0"
  originatorId: "POLICY"
}
actionIdentifiers {
  blueprintName: "pm_control"
  blueprintVersion: "1.0.0"
  actionName: "create-subscription"
  mode: "sync"
}
payload {
  fields {
    key: "create-subscription-request"
    value {
      struct_value {
        fields {
          key: "resolution-key"
          value {
            string_value: "e6fd6fb9-5734-49e9-bf13-7b3308fb8f7a"
          }
        }
        fields {
          key: "create-subscription-properties"
          value {
            struct_value {
              fields {
                key: "pnf.pnf-name"
                value {
                  string_value: "pnf300"
                }
              }
              fields {
                key: "pnf.pnf-name2-source"
                value {
                  string_value: "example-pnf-name2-source-val-99275"
                }
              }
              fields {
                key: "pnf.pnf-id"
                value {
                  string_value: "927b2580-36d9-4f13-8421-3c9d43b7a57e"
                }
              }
              fields {
                key: "pnf.equip-type"
                value {
                  string_value: "example-equip-type-val-20348"
                }
              }
              fields {
                key: "pnf.equip-vendor"
                value {
                  string_value: "example-equip-vendor-val-52182"
                }
              }
              fields {
                key: "pnf.equip-model"
                value {
                  string_value: "example-equip-model-val-8370"
                }
              }
              fields {
                key: "pnf.management-option"
                value {
                  string_value: "example-management-option-val-72881"
                }
              }
              fields {
                key: "pnf.orchestration-status"
                value {
                  string_value: "Active"
                }
              }
              fields {
                key: "pnf.ipaddress-v4-oam"
                value {
                  string_value: "10.2.0.142"
                }
              }
              fields {
                key: "pnf.in-maint"
                value {
                  string_value: "false"
                }
              }
              fields {
                key: "pnf.ipaddress-v6-oam"
                value {
                  string_value: ""
                }
              }
              fields {
                key: "pnf.resource-version"
                value {
                  string_value: "1588678430278"
                }
              }
              fields {
                key: "nfName"
                value {
                  string_value: "pnf300"
                }
              }
              fields {
                key: "administrativeState"
                value {
                  string_value: "UNLOCKED"
                }
              }
              fields {
                key: "subscriptionName"
                value {
                  string_value: "demo-subscription"
                }
              }
              fields {
                key: "fileBasedGP"
                value {
                  string_value: "15"
                }
              }
              fields {
                key: "fileLocation"
                value {
                  string_value: "test/pmx.xml"
                }
              }
              fields {
                key: "data"
                value {
                  string_value: ""
                }
              }
            }
          }
        }
      }
    }
  }
}

...

Code Block
languagetext
titleDrools Tosca PolicyCDS Response
collapsetrue
commonHeader {
  timestamp: "2020-05-06T16:43:32.437Z"
  requestId: "c7c6a4aa-bb61-4a15-b831-ba1472dd4a56"
  subRequestId: "0"
  flag {
  }
  originatorId: "POLICY"
}
actionIdentifiers {
  blueprintName: "pm_control"
  blueprintVersion: "1.0.0"
  actionName: "create-subscription"
  mode: "sync"
}
status {
  code: 200
  message: "success"
  eventType: EVENT_COMPONENT_EXECUTED
  timestamp: "Wed May 06 16:43:33 GMT 2020"
}
payload {
  fields {
    key: "create-subscription-response"
    value {
      struct_value {
        fields {
          key: "odl-response"
          value {
            struct_value {
              fields {
                key: "status"
                value {
                  string_value: "success"
                }
              }
            }
          }
        }
      }
    }
  }
}

The results are logged by Drools-PDP to POLICY-CL-MGT topic