Versions Compared

Key

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

...

Code Block
titlevDNS - Operational Policy
linenumberstrue
collapsetrue
controlLoop:
  version: 2.0.0
  controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
  trigger_policy: unique-policy-id-1-scale-up
  timeout: 1200
  abatement: false
policies:
  - id: unique-policy-id-1-scale-up
    name: ScaleCreate a outnew theVF VNFModule
    description:
    actor: SO
    recipe: VF scaleOutModule Create
    target:
      type: VNF
    payload:
     
# Need to get from Marco       requestParameters: '{"usePreload":true,"userParams":[]}'
       configurationParameters: '[{"availabilityip-zoneaddr":"$.vnfvf-module-topology.vnfvf-resourcemodule-assignments.availability-zones.availability-zone[0parameters.param[9]","xtzoam-ip-123addr":"$.vnfvf-module-topology.vnfvf-resource-assignments.availability-zones.availability-zone[0module-parameters.param[16]","enabled":"$.vf-module-topology.vf-module-parameters.param[23]"}]'
    retry: 0
    timeout: 1200
    success: final_success
    failure: final_failure
    failure_timeout: final_failure_timeout
    failure_retries: final_failure_retries
    failure_exception: final_failure_exception
    failure_guard: final_failure_guard

...

Code Block
titlevDNS Guard - Min/Max Create API Call
collapsetrue
# PROTOTYPE - development needs to be done first

curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
        "policyClass": "Decision",
        "policyName": "com.vDNS.MinMax",
        "policyDescription": "Ensure number of instances within a range",
        "ecompNameonapName": "PDPD",
        "ruleProvider": "GUARD_MIN_YAMLMAX",
        "attributes": {
                "MATCHING": {
                        "actor": "SO",
                        "recipe": "scaleOut",
                        "targets": ".*",
                        "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
                        "min": "1",
                        "max": "5",
                        "guardActiveStart": "00:00:01-05:00",
                        "guardActiveEnd": "00:00:00-05:00"
                }
        }
}' 'http://pdp:8081/pdp/api/createPolicy'


Code Block
titlevDNS Guard - Frequency Limiter Create API Call
collapsetrue
# DRAFT - this needs to be tested first
curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
        "policyClass": "Decision",
        "policyName": "com.vDNS.Frequency",
        "policyDescription": "Limit vDNS Scale Up over time period",
        "ecompNameonapName": "PDPD",
        "ruleProvider": "GUARD_YAML",
        "attributes": {
                "MATCHING": {
                        "actor": "SO",
                        "recipe": "scaleOut",
                        "targets": ".*",
                        "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
                        "limit": "1",
                        "timeWindow": "10",
                        "timeUnits": "minute",
                        "guardActiveStart": "00:00:01-05:00",
                        "guardActiveEnd": "00:00:00-05:00"
                }
        }
}' 'http://pdp:8081/pdp/api/createPolicy'

...

Code Block
titlevDNS - A&AI vserver named query response
linenumberstrue
collapsetrue
{
    "inventory-response-item": [
        {
            "extra-propertiesvserver": {},
                "inventoryvserver-response-itemsid": {"143473ac-1b32-47bc-aa07-10a680d2bbbb",
                "inventoryvserver-response-itemname": ["vlb-ms-0706-1",
                    {"vserver-name2": "vlb-ms-0706-1",
                        "extra-properties"prov-status": {"ACTIVE",
                            "extra-property": [
        "vserver-selflink": "http://ecompctl1.research.att.com:8774/v2/3f2aaef74ecb4b19b35e26d0849fe9a2/servers/143473ac-1b32-47bc-aa07-10a680d2bbbb",
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "resource-version": "1531949079952"
            },
            "extra-properties": {},
            "inventory-response-items": {
                "inventory-response-item": [
                    {
                        "model-name": "vLoadBalancerMS",
                        "generic-vnf": {
                            "vnf-id": "f524b92a-b5bd-4c9d-9c92-2ef672bc070f",
                            "vnf-name": "vLoadBalancerMS-Vnf-0706-1",
                            "vnf-type": "vLoadBalancerMS/vLoadBalancerMS 0",
                            "service-id": "50e1b0be-e0c9-48e2-9f42-15279a783ee8",
                            "prov-status": "PROV",
                            "orchestration-status": "Active",
                            "ipv4-oam-address": "10.0.150.1",
                            "in-maint": false,
                            "is-closed-loop-disabled": false,
                            "resource-version": "1533141664663",
                            "model-invariant-id": "32f7ec6a-1c54-4c06-a548-fe84832e3c40",
                            "model-version-id": "2db7689c-a979-4418-b71f-6a45a32f4791",
                            "model-customization-id": "f3af2f41-8ea2-4f3c-8d85-aaede9699a71",
                            "nf-type": "nf-type",
                            "nf-function": "nf-function",
                            "nf-role": "nf-role",
                            "nf-naming-code": ""
                        },
                        "extra-properties": {
                            "extra-property": [
                                {
                                    "property-name": "model-ver.model-version-id",
                                    "property-value": "2db7689c-a979-4418-b71f-6a45a32f4791"
                                },
                                {
                                    "property-name": "model-ver.model-name",
                                    "property-value": "vLoadBalancerMS"
                                },
                                {
                                    "property-name": "model-ver.model-version-idtype",
                                    "property-value": "2db7689c-a979-4418-b71f-6a45a32f4791resource"
                                },
                                {
                                    "property-name": "model-ver.model-invariant-nameid",
                                    "property-value": "vLoadBalancerMS32f7ec6a-1c54-4c06-a548-fe84832e3c40"
                                },
                                {
                                    "property-name": "model-ver.model-typeversion",
                                    "property-value": "1.0"
                                }
                            ]
                        },
                        "inventory-response-items": "resource"{
                            "inventory-response-item": [
                                {
    },                                 {"model-name": "vLoadBalancerMS",
                                    "propertyservice-nameinstance": "model.model-invariant-id", {
                                        "propertyservice-instance-valueid": "32f7ec6af242d516-1c547c96-4c064b02-a548a74d-fe84832e3c404363b4267459",
                                },        "service-instance-name": "vLoadBalancerMS-Service-0706-1",
                       {                 "environment-context": "General_Revenue-Bearing",
                  "property-name": "model-ver.model-version",                      "workload-context": "Production",
             "property-value": "1.0"                            "model-invariant-id": "2d4e2c32-2ffb-494a-9677-073a08f637dd",
   }                             ]        "model-version-id": "4dd37f02-7da5-451c-ba76-032a5b465c65",
               },                         "genericresource-vnfversion": {"1530889799597",
                            "in-maint": false,           "orchestration-status": "Active"
                "ipv4-oam-address": "10.0.150.1",                      },
      "is-closed-loop-disabled": false,                             "modelextra-customization-idproperties": "f3af2f41-8ea2-4f3c-8d85-aaede9699a71",{
                                        "modelextra-invariant-idproperty": "32f7ec6a-1c54-4c06-a548-fe84832e3c40", [
                                 "model-version-id": "2db7689c-a979-4418-b71f-6a45a32f4791",          {
                  "nf-function": "nf-function",                             "nfproperty-naming-codename": "",
         model-ver.model-version-id",
                  "nf-role": "nf-role",                             "nfproperty-typevalue": "nf-type",4dd37f02-7da5-451c-ba76-032a5b465c65"
                                  "orchestration-status": "Active",         },
                   "prov-status": "PROV",                        {
    "resource-version": "1533141664663",                             "service-id": "50e1b0be-e0c9-48e2-9f42-15279a783ee8",             "property-name": "model-ver.model-name",
              "vnf-id": "f524b92a-b5bd-4c9d-9c92-2ef672bc070f",                                  "vnfproperty-namevalue": "vLoadBalancerMS-Vnf-0706-1","
                                    "vnf-type": "vLoadBalancerMS/vLoadBalancerMS 0"      },
                  },                         "inventory-response-items": {

                           "inventory-response-item": [                    "property-name": "model.model-type",
           {                                     "extraproperty-propertiesvalue": {"service"
                                           "extra-property": [ },
                                            {
                                                "property-name": "model-ver.model-versioninvariant-id",
                                                "property-value": "4dd37f022d4e2c32-7da52ffb-451c494a-ba769677-032a5b465c65073a08f637dd"
                                            },
                                            {
                                                "property-name": "model-ver.model-nameversion",
                                                "property-value": "vLoadBalancerMS1.0"
                                            },
                                        ]
                  {                  }
                               "property-name": "model.model-type", },
                                    {
                                    "model-name": "Vloadbalancerms..dnsscaling..module-1",
                                       "propertyvf-valuemodule": "service"{
                                            }"vf-module-id": "c0831ca7-0a20-4f03-a183-1135381b8707",
                                            {"vf-module-name": "vLoadBalancerMS-Vnf-0706-1_2",
                                                "property-name"heat-stack-id": "model.model-invariant-id",
       vLoadBalancerMS-Vnf-0706-1_2/122b563a-2c56-4804-aa81-970ba7741b55",
                                        "propertyorchestration-valuestatus": "2d4e2c32-2ffb-494a-9677-073a08f637dd"active",
                                            }"is-base-vf-module": false,
                                            {
      "resource-version": "1531510457103",
                                         "propertymodel-invariant-nameid": "model-ver.model-version285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
                                                "property-value"model-version-id": "1.0"3db507c6-bec6-47a3-9ac3-5978d3f03882",
                                            }"model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                                         ]"module-index": 0
                                    },
                                    "modelextra-nameproperties": "vLoadBalancerMS",{
                                        "serviceextra-instanceproperty": {[
                                            {
      "environment-context": "General_Revenue-Bearing",                                         "modelproperty-invariant-idname": "2d4e2c32model-2ffbver.model-494aversion-9677-073a08f637ddid",
                                        "model-version-id        "property-value": "4dd37f023db507c6-7da5bec6-451c47a3-ba769ac3-032a5b465c655978d3f03882",
                                           "orchestration-status": "Active", },
                                            {
      "resource-version": "1530889799597",                                         "serviceproperty-instance-idname": "f242d516model-7c96-4b02-a74d-4363b4267459",ver.model-name",
                                                "serviceproperty-instance-namevalue": "vLoadBalancerMS-Service-0706Vloadbalancerms..dnsscaling..module-1",
                                        "workload-context": "Production"   },
                                 }           {
                     },                           "property-name": "model.model-type",
        {                                        "extraproperty-propertiesvalue": "resource"
 {                                         "extra-property": [  },
                                            {
                                                "property-name": "model-ver.model-versioninvariant-id",
                                                "property-value": "3db507c6285adb8d-bec6b6b4-47a341f6-9ac38f28-5978d3f0388248f86ad4fa3b"
                                            },
                                            {
                                                "property-name": "model-ver.model-nameversion",
                                                "property-value": "Vloadbalancerms..dnsscaling..module-1"
                                            },
                                        ]
   {                                 }
               "property-name": "model.model-type",                },
                                "property-value": "resource"{
                                             }"model-name": "Vloadbalancerms..dnsscaling..module-1",
                                            {
       "vf-module": {
                                        "propertyvf-module-nameid": "model.model-invariant-id50e6e588-fe87-4663-aa10-51964f51a67d",
                                                "property-value"vf-module-name": "285adb8dvLoadBalancerMS-b6b4Vnf-41f6-8f28-48f86ad4fa3b"0706-1_4",
                                            }"heat-stack-id": "vLoadBalancerMS-Vnf-0706-1_4/ec246cff-38e3-4c89-99bf-21bc925b073c",
                                          "orchestration-status": "active",
 {                                                 "property-name": "model-ver.model-version",
       "is-base-vf-module": false,
                                        "propertyresource-valueversion": "11531925572435",
                                        "model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
  }                                      "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
    ]                                     },"model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                                       "model-name": "Vloadbalancerms..dnsscaling..module-1index",
    : 2
                               "vf-module": {    },
                                    "heatextra-stack-idproperties": "vLoadBalancerMS-Vnf-0706-1_2/122b563a-2c56-4804-aa81-970ba7741b55",{
                                        "is-base-vf-module": false,extra-property": [
                                            {
     "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",                                           "modelproperty-invariant-idname": "285adb8dmodel-b6b4ver.model-41f6version-8f28-48f86ad4fa3bid",
                                        "model-version-id        "property-value": "3db507c6-bec6-47a3-9ac3-5978d3f03882","
                                            },
         "module-index": 0,                                  {
      "orchestration-status": "active",                                         "resourceproperty-versionname": "1531510457103model-ver.model-name",
                                                "vfproperty-module-idvalue": "c0831ca7-0a20-4f03-a183-1135381b8707",Vloadbalancerms..dnsscaling..module-1"
                                            },
  "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_2"                                     }    {
                            },                    "property-name": "model.model-type",
           {                                     "extraproperty-propertiesvalue": { "resource"
                                           "extra-property": [ },
                                            {
                                                "property-name": "model-ver.model-versioninvariant-id",
                                                "property-value": "3db507c6285adb8d-bec6b6b4-47a341f6-9ac38f28-5978d3f0388248f86ad4fa3b"
                                            },
                                            {
                                                "property-name": "model-ver.model-nameversion",
                                                "property-value": "Vloadbalancerms..dnsscaling..module-1"
                                            },
                                        ]
   {                                         }
       "property-name": "model.model-type",                        },
                        "property-value": "resource"       {
                                     },
            "model-name": "Vloadbalancerms..dnsscaling..module-1",
                               {       "vf-module": {
                                         "propertyvf-module-nameid": "model.model-invariant-id",
       8853e587-07d9-4081-9f90-61af87cd34bf",
                                        "propertyvf-module-valuename": "285adb8dvLoadBalancerMS-b6b4Vnf-41f6-8f28-48f86ad4fa3b"0706-1_3",
                                            }"heat-stack-id": "vLoadBalancerMS-Vnf-0706-1_3/10d56b1b-1d3e-4677-a31f-3449e1e3c457",
                                            {
     "orchestration-status": "active",
                                          "property-name"is-base-vf-module": "model-ver.model-version",
       false,
                                        "propertyresource-valueversion": "11531840660936",
                                        "model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
     }                                   "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
    ]                                     }"model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                                    "model-name": "Vloadbalancerms..dnsscaling..module-1",    "module-index": 1
                               "vf-module": {    },
                                    "heatextra-stack-idproperties": "vLoadBalancerMS-Vnf-0706-1_4/ec246cff-38e3-4c89-99bf-21bc925b073c",{
                                        "is-base-vf-module": false,extra-property": [
                                            {
      "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",                                         "modelproperty-invariant-idname": "285adb8dmodel-b6b4ver.model-41f6version-8f28-48f86ad4fa3bid",
                                                "modelproperty-version-idvalue": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
                                           "module-index": 2, },
                                            {
 "orchestration-status": "active",                                               "resourceproperty-versionname": "1531925572435model-ver.model-name",
                                                "vfproperty-module-idvalue": "50e6e588-fe87-4663-aa10-51964f51a67d",Vloadbalancerms..dnsscaling..module-1"
                                            },
  "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_4"                                     }    {
                            },                    "property-name": "model.model-type",
           {                                     "extraproperty-propertiesvalue": { "resource"
                                           "extra-property": [ },
                                            {
                                                "property-name": "model-ver.model-versioninvariant-id",
                                                "property-value": "3db507c6285adb8d-bec6b6b4-47a341f6-9ac38f28-5978d3f0388248f86ad4fa3b"
                                            },
                                            {
                                                "property-name": "model-ver.model-nameversion",
                                                "property-value": "Vloadbalancerms..dnsscaling..module-1"1"
                                            }
                                        ]
                 },                   }
                                },
                    {            {
                                    "propertymodel-name": "model.model-type",Vloadbalancerms..dnsscaling..module-1",
                                    "vf-module": {
               "property-value": "resource"                         "vf-module-id": "51dbbf67-6e25-4d0c-8c18-ba7f21b8cfb3",
                                        "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_6",
       },                                 "heat-stack-id": "vLoadBalancerMS-Vnf-0706-1_6/8486eafa-d860-4c17-a1bf-a1c436290806",
           {                             "orchestration-status": "active",
                  "property-name": "model.model-invariant-id",                     "is-base-vf-module": false,
                          "property-value": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"             "resource-version": "1532638352675",
                              },          "model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
                                 {       "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
                                        "propertymodel-customization-nameid": "model-ver.model-version1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                                        "module-index": 4
         "property-value": "1"                          },
                  }                  "extra-properties": {
                     ]                   "extra-property": [
                },                            {
        "model-name": "Vloadbalancerms..dnsscaling..module-1",                                        "vfproperty-modulename": {"model-ver.model-version-id",
                                                "heatproperty-stack-idvalue": "vLoadBalancerMS3db507c6-Vnfbec6-0706-1_3/10d56b1b-1d3e-4677-a31f-3449e1e3c457",47a3-9ac3-5978d3f03882"
                                           "is-base-vf-module": false },
                                        "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",    {
                                                "modelproperty-invariant-idname": "285adb8dmodel-b6b4-41f6-8f28-48f86ad4fa3b",ver.model-name",
                                                "modelproperty-version-idvalue": "3db507c6-bec6-47a3-9ac3-5978d3f03882",Vloadbalancerms..dnsscaling..module-1"
                                           "module-index": 1, },
                                           "orchestration-status": "active", {
                                                "resourceproperty-versionname": "1531840660936model.model-type",
                                                "vfproperty-module-idvalue": "8853e587-07d9-4081-9f90-61af87cd34bf",resource"
                                            },
 "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_3"                                       }    {
                            },                    "property-name": "model.model-invariant-id",
           {                                     "extraproperty-propertiesvalue": {"285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"
                                           "extra-property": [ },
                                            {
                                                "property-name": "model-ver.model-version-id",
                                                "property-value": "3db507c6-bec6-47a3-9ac3-5978d3f038821"
                                            },
                                        ]
   {                                 }
               "property-name": "model-ver.model-name",                },
                                "property-value": "Vloadbalancerms..dnsscaling..module-1"{
                                             }"model-name": "Vloadbalancerms..dnsscaling..module-1",
                                            {
     "vf-module": {
                                          "propertyvf-module-nameid": "model.model-typec6256fd8-dfa7-49fd-a320-4be08bb3a49d",
                                                "property-value": "resource"             "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_7",
                              },          "heat-stack-id": "vLoadBalancerMS-Vnf-0706-1_7/8a587bc3-96b1-4ba7-9f4a-d40f669d08de",
                                 {       "orchestration-status": "active",
                                        "property-nameis-base-vf-module": "model.model-invariant-id"false,
                                                "property-value"resource-version": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"1532702700715",
                                            }"model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
                                            {
       "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
                                        "propertymodel-customization-nameid": "model-ver.model-version1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                                        "module-index": 5
      "property-value": "1"                             },
               }                     "extra-properties": {
                  ]                      "extra-property": [
             },                               {
     "model-name": "Vloadbalancerms..dnsscaling..module-1",                                           "vfproperty-modulename": {"model-ver.model-version-id",
                                                "heatproperty-stack-idvalue": "vLoadBalancerMS3db507c6-Vnfbec6-0706-1_6/8486eafa-d860-4c17-a1bf-a1c436290806",47a3-9ac3-5978d3f03882"
                                           "is-base-vf-module": false, },
                                             "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",{
                                                "modelproperty-invariant-idname": "285adb8dmodel-b6b4-41f6-8f28-48f86ad4fa3bver.model-name",
                                        "model-version-id        "property-value": "3db507c6-bec6-47a3-9ac3-5978d3f03882",Vloadbalancerms..dnsscaling..module-1"
                                           "module-index": 4, },
                                            {
    "orchestration-status": "active",                                            "resourceproperty-versionname": "1532638352675model.model-type",
                                                "vfproperty-module-idvalue": "51dbbf67-6e25-4d0c-8c18-ba7f21b8cfb3","resource"
                                            },
 "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_6"                                     }     {
                           },                     "property-name": "model.model-invariant-id",
           {                                     "extraproperty-propertiesvalue": { "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"
                                           "extra-property": [ },
                                            {
                                                "property-name": "model-ver.model-version-id",
                                                "property-value": "3db507c6-bec6-47a3-9ac3-5978d3f038821"
                                            },
                                        ]
                   {                 }
                               "property-name": "model-ver.model-name" },
                                {
               "property-value                     "model-name": "Vloadbalancerms..dnsscaling..module-1",
                                    "vf-module": {
                         },               "vf-module-id": "dummy_f524b92a-b5bd-4c9d-9c92-2ef672bc070f",
                                 {       "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_0",
                                        "property-nameis-base-vf-module": "model.model-type",false,
                                        "resource-version": "1537212348939",
         "property-value": "resource"                              "model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
             },                           "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
                {                        "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef"
                       "property-name": "model.model-invariant-id",            },
                                    "propertyextra-valueproperties": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"{
                                        "extra-property": [
  },                                             {
                                                "property-name": "model-ver.model-version-id",
                                                "property-value": "13db507c6-bec6-47a3-9ac3-5978d3f03882"
                                            },
                                        ]                    {
                },                                     "modelproperty-name": "Vloadbalancerms..dnsscaling..module-1",
                            model-ver.model-name",
       "vf-module": {                                         "heatproperty-stack-idvalue": "vLoadBalancerMS-Vnf-0706-1_7/8a587bc3-96b1-4ba7-9f4a-d40f669d08de",Vloadbalancerms..dnsscaling..module-1"
                                           "is-base-vf-module": false, },
                                            {
    "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",                                            "modelproperty-invariant-idname": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",model.model-type",
                                                "modelproperty-version-idvalue": "3db507c6-bec6-47a3-9ac3-5978d3f03882",resource"
                                           "module-index": 5 },
                                        "orchestration-status": "active",    {
                                                "resourceproperty-versionname": "1532702700715model.model-invariant-id",
                                                "vfproperty-module-idvalue": "c6256fd8285adb8d-dfa7b6b4-49fd41f6-a3208f28-4be08bb3a49d",48f86ad4fa3b"
                                            },
  "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_7"                                     }    {
                            },                    "property-name": "model-ver.model-version",
           {                                     "extraproperty-propertiesvalue": {"1"
                                            }
              "extra-property": [                         ]
                   {                 }
                               "property-name": "model-ver.model-version-id", },
                                {
                  "property-value": "3db507c6-bec6-47a3-9ac3-5978d3f03882"                 "model-name": "Vloadbalancerms..dnsscaling..module-1",
                          },          "vf-module": {
                                 {       "vf-module-id": "aa9294f3-8cd6-483c-8165-8e303b7022a4",
                                        "propertyvf-module-name": "model-ver.model-name",
    vLoadBalancerMS-Vnf-0706-1_5",
                                           "property-value"heat-stack-id": "Vloadbalancerms..dnsscaling..module-1"vLoadBalancerMS-Vnf-0706-1_5/39e7f1bd-1746-4370-aec5-1ff83a28a9a9",
                                            }"orchestration-status": "active",
                                            {
    "is-base-vf-module": false,
                                           "propertyresource-nameversion": "model.model-type1532616866686",
                                        "model-invariant-id": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",
         "property-value": "resource"                              "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882",
             },                           "model-customization-id": "1726b74e-8831-4b0a-a1f3-c254cc2e8fef",
                {                        "module-index": 3
                       "property-name": "model.model-invariant-id",            },
                                    "propertyextra-valueproperties": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"{
                                        "extra-property": [
  },
                                            {
                                                "property-name": "model-ver.model-version-id",
                                                "property-value": "13db507c6-bec6-47a3-9ac3-5978d3f03882"
                                            },
                                            {
]                                     },           "property-name": "model-ver.model-name",
                        "model-name": "Vloadbalancerms..dnsscaling..module-1",                       "property-value": "Vloadbalancerms..dnsscaling..module-1"
            "vf-module": {                               },
         "heat-stack-id": "vLoadBalancerMS-Vnf-0706-1_5/39e7f1bd-1746-4370-aec5-1ff83a28a9a9",                                  {
      "is-base-vf-module": false,                                         "modelproperty-customization-idname": "1726b74e-8831-4b0a-a1f3-c254cc2e8fefmodel.model-type",
                                         "model-invariant-id       "property-value": "285adb8d-b6b4-41f6-8f28-48f86ad4fa3b",resource"
                                           "model-version-id": "3db507c6-bec6-47a3-9ac3-5978d3f03882", },
                                            {
     "module-index": 3,                                           "orchestrationproperty-statusname": "activemodel.model-invariant-id",
                                        "resource-version        "property-value": "1532616866686",285adb8d-b6b4-41f6-8f28-48f86ad4fa3b"
                                           "vf-module-id": "aa9294f3-8cd6-483c-8165-8e303b7022a4", },
                                            {
 "vf-module-name": "vLoadBalancerMS-Vnf-0706-1_5"                                     }         "property-name": "model-ver.model-version",
                      },                          "property-value": "1"
     {                                     "extra-properties": { }
                                       "extra-property": [ ]
                                    }
       {                           },
                     "property-name": "model-ver.model-version-id",            {
                                    "propertymodel-valuename": "75122eb8-1482-4c68-b7cf-dd8458f58ba5"Vloadbalancerms..base_vlb..module-0",
                                    "vf-module": {
      },                                             {"vf-module-id": "155949a5-8494-45c8-84db-3675dcc5a64f",
                                                "property"vf-module-name": "model-ver.model-name",
       Vfmodule_vLBMS-0706-1",
                                        "propertyheat-stack-valueid": "Vloadbalancerms..base_vlb..module-0"Vfmodule_vLBMS-0706-1/76c42b6b-09b0-434b-85a7-2b226eb3d31c",
                                            }"orchestration-status": "active",
                                            {
    "is-base-vf-module": true,
                                           "propertyresource-nameversion": "model.model-type"1530890184655",
                                        "model-invariant-id": "f96252ec-2729-45c7-ae73-a4e4bf495838",
       "property-value": "resource"                                "model-version-id": "75122eb8-1482-4c68-b7cf-dd8458f58ba5",
             },                           "model-customization-id": "f979a817-584e-4857-b585-c8f409eccbdd",
                {                        "module-index": 0
                       "property-name": "model.model-invariant-id",            },
                                    "propertyextra-valueproperties": "f96252ec-2729-45c7-ae73-a4e4bf495838"{
                                        "extra-property": [
  },                                             {
                                                "property-name": "model-ver.model-version-id",
                                                "property-value": "175122eb8-1482-4c68-b7cf-dd8458f58ba5"
                                            },
                                        ]    {
                                },                        "property-name": "model-ver.model-name",
            "model-name": "Vloadbalancerms..base_vlb..module-0",
                                    "vfproperty-modulevalue": {"Vloadbalancerms..base_vlb..module-0"
                                        "heat-stack-id": "Vfmodule_vLBMS-0706-1/76c42b6b-09b0-434b-85a7-2b226eb3d31c"    },
                                        "is-base-vf-module": true,    {
                                                "modelproperty-customization-idname": "f979a817-584e-4857-b585-c8f409eccbdd",model.model-type",
                                                "modelproperty-invariant-idvalue": "f96252ec-2729-45c7-ae73-a4e4bf495838",resource"
                                           "model-version-id": "75122eb8-1482-4c68-b7cf-dd8458f58ba5", },
                                           {
      "module-index": 0,                                         "orchestrationproperty-statusname": "activemodel.model-invariant-id",
                                                "resourceproperty-versionvalue": "1530890184655",
 f96252ec-2729-45c7-ae73-a4e4bf495838"
                                      "vf-module-id": "155949a5-8494-45c8-84db-3675dcc5a64f",     },
                                   "vf-module-name": "Vfmodule_vLBMS-0706-1"        {
                            }                    "property-name": "model-ver.model-version",
           }                             ]        "property-value": "1"
               },                         "model-name": "vLoadBalancerMS"   }
                 },                     {  ]
                      "extra-properties": {},             }
           "inventory-response-items": {                     }
       "inventory-response-item": [                    ]
            {            }
                    },
   "cloud-region": {                {
                        "cloud-ownertenant": "CloudOwner",{
                                        "cloud-region-"tenant-id": "RegionOne3f2aaef74ecb4b19b35e26d0849fe9a2",
                                        "cloud-region-version"tenant-name": "v2.5ONAP-demo-test",
                            "resource-version": "1529419258510"
          "cloud-type": "openstack",                },
                        "cloudextra-zoneproperties": "zone-1"{},
                        "inventory-response-items": {
              "owner-defined-type": "owner type",            "inventory-response-item": [
                           "resource-version": "1529419258443",    {
                                    "sriovcloud-automationregion": {
 false                                       },"cloud-owner": "CloudOwner",
                                        "extracloud-region-propertiesid": {}
 "RegionOne",
                              }          "cloud-type": "openstack",
                 ]                       "owner-defined-type": "owner }type",
                        "tenant": {                  "cloud-region-version": "v2.5",
          "resource-version": "1529419258510",                             "tenantcloud-idzone": "3f2aaef74ecb4b19b35e26d0849fe9a2zone-1",
                            "tenant-name": "ONAP-demo-test"            "sriov-automation": false,
             }                       }    "resource-version": "1529419258443"
           ]             },            },
"vserver": {                 "in-maint": false,                 "is-closed-loop-disabledextra-properties": false,{}
                   "prov-status": "ACTIVE",            }
    "resource-version": "1531949079952",                 "vserver-id": "143473ac-1b32-47bc-aa07-10a680d2bbbb",     ]
           "vserver-name": "vlb-ms-0706-1",            }
    "vserver-name2": "vlb-ms-0706-1",               }
 "vserver-selflink": "http://ecompctl1.research.att.com:8774/v2/3f2aaef74ecb4b19b35e26d0849fe9a2/servers/143473ac-1b32-47bc-aa07-10a680d2bbbb"               ]
            }
        }
    ]
}



SO API Interaction

Code Block
titlevDNS - SO Request (TODO - Update)
linenumberstrue
collapsetrue
https://{so}/serviceInstantiation/v7/3b12f31f-8f2d-4f5c-b875-61ff1194b941/vnfs/db373a8d-f7be-4d02-8ac8-6ca4c305d144/vfModules/scaleOut

{
  "requestDetails": {
    "modelInfo": {
      "modelType": "vfModule",
      "modelInvariantId": "356a1cff-71f2-4086-9980-a2927ce11c1c",
      "modelVersionId": "6b93d804-cfc8-4be3-92cc-9336d135859a",
      "modelName": "Vloadbalancer..dnsscaling..module-1",
      "modelVersion": "1"
    },
    "cloudConfiguration": {
      "lcpCloudRegionId": "RegionOne",
      "tenantId": "41d6d38489bd40b09ea8a6b6b852dcbd"
    },
    "requestInfo": {
      "instanceName": "my_module_3",
      "source": "POLICY",
      "suppressRollback": false,
      "requestorId": "policy"
    },
    "relatedInstanceList": [
      {
        "relatedInstance": {
          "instanceId": "3b12f31f-8f2d-4f5c-b875-61ff1194b941",
          "modelInfo": {
            "modelType": "service",
            "modelInvariantId": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a",
            "modelVersionId": "732d4692-4b97-46f9-a996-0b3339e88c50",
            "modelName": "vLoadBalancer-1106",
            "modelVersion": "1.0"
          }
        }
      },
      {
        "relatedInstance": {
          "instanceId": "db373a8d-f7be-4d02-8ac8-6ca4c305d144",
          "modelInfo": {
            "modelType": "vnf",
            "modelInvariantId": "cee050ed-92a5-494f-ab04-234307a846dc",
            "modelVersionId": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2",
            "modelName": "vLoadBalancer",
            "modelVersion": "1.0",
            "modelCustomizationName": "vLoadBalancer 0"
          }
        }
      }
    ],
    "requestParameters": {
      "usePreload": true,
      "userParams": []
    },
    "configurationParameters": [
      {
        "availability-zone": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]",
        "xtz-123": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]"
      }
    ]
  }
}
Code Block
titlevDNS - SO Response ACCEPTED (TODO - Update)
linenumberstrue
collapsetrue
{
	"requestReferences": {
		"requestId": "60533ee3-814d-4949-be93-e6b26aace580"
	},
	"request": {
		"requestId":"d5bc27f2-1d5c-405d-a985-3e3f544c1582",
		"requestStatus": {
			"percentProgress": 0,
			"requestState": "COMPLETEIN_PROGRESS",
			"wasRolledBack": false
		}
	},
	"httpResponseCode": 0
}
Code Block
titlevDNS - SO Request Status Query (if not complete)
linenumberstrue
collapsetrue
https://{so}/orchestrationRequests/v5/60533ee3-814d-4949-be93-e6b26aace580
Code Block
titlevDNS - SO Response SUCCESS (TODO - Add)
linenumberstrue
collapsetrue
TODO - this is new work{
	"requestReferences": {
		"requestId": "60533ee3-814d-4949-be93-e6b26aace580"
	},
	"request": {
		"requestId":"d5bc27f2-1d5c-405d-a985-3e3f544c1582",
		"requestStatus": {
			"percentProgress": 100,
			"requestState": "COMPLETE",
			"wasRolledBack": false
		}
	},
	"httpResponseCode": 0
}




vFirewall

Policy Creation

Code Block
titlevFirewall - TCA Configuration Policy Payload
linenumberstrue
collapsetrue
tca_policy: "{
  "domain": "measurementsForVfScaling",
  "metricsPerEventName": [
    {
      "eventName": "vFirewallBroadcastPackets",
      "controlLoopSchemaType": "VNF",
      "policyScope": "DCAE",
      "policyName": "DCAE.Config_tca-hi-lo",
      "policyVersion": "v0.0.1",
 
      "thresholds": [
        {
          "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
          "version": "1.0.2",
          "fieldPath": "$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta",
          "thresholdValue": 300,
          "direction": "LESS_OR_EQUAL",
          "severity": "MAJOR",
          "closedLoopEventStatus": "ONSET"
        },
        {
          "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
          "version": "1.0.2",
          "fieldPath": "$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta",
          "thresholdValue": 700,
          "direction": "GREATER_OR_EQUAL",
          "severity": "CRITICAL",
          "closedLoopEventStatus": "ONSET"
        }
      ]
    }
  ]
 
}"

...

Code Block
languagetext
titleCCVPN - Query 'input-parameters' for 'service-instance'
collapsetrue
URL: https://<AAI host>:<AAI port>/aai/v14/business/customers/customer/{global-custoner-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-instance-id={serviceId}
Method: GET
Request Body:
{
}
Response Body:
{
    "service-instance-id": "{service-instance-id}",
    "service-instance-name" : "instance name",
    "service-type": "some type",
    "service-role": "some role",
    "model-invariant-id": "model id",
    "model-version-id": "model version",
    "input-parameters:"request parameters",  // ... This is the service instance recreation input looked up by CL.
    "resource-version": "some version"
}
 
 
Example of response body:
{
    "service-instance-id": "176d9eba-1662-4289-8396-0097b50fd485",
    "service-type": "E2E Service",
    "service-role": "E2E Service",
    "model-invariant-id": "c22a9483-d2b6-49cc-b1f7-ef34c93572a1",
    "model-version-id": "71d0e396-e246-4c23-aa57-6da2043d6209",
    "input-parameters:".....;",             // ... This is the service instance recreation input looked up by CL.
    "resource-version": "1528975017336"
    "relationship-list": {
         "relationship": [
            {
            "related-to": "pnf",
            "related-link": "/aai/v11/network/pnfs/pnf/MME-0001",
            "relationship-data": [
                    {    
                    "relationship-key": "pnf.pnf-id",      
                    "relationship-value": "176d9eba-1662-4289-8396-0097b50fd466"
                    }
                ],
            "related-to-property": [
                    {
                    "property-key": "pnf.pnf-name",      
                    "property-value": "MME-0001"
                    }
                ]
            } 
        ]
    }
}


SO API Interaction





requestParameters: '{}'