Versions Compared

Key

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

...

JSON Viewer
width600
height700
{
    "requestInfo": {
        "transactionId": "e576c75e-7536-4145-a1c0-d60b65bb1bb8",
        "requestId": "de4f04e3-0a65-470b-9d07-8ea6c2fb3e10",
        "callbackUrl": "http://0.0.0.0:9000/osdfCallback/",
        "sourceId": "SO",
        "requestType": "create",
        "numSolutions": "100",
        "optimizers": [
            "placement"
        ],
        "timeout": 1200
    },
    "placementInfo": {
        "requestParameters": {
            "chosenRegion": "RegionOne",
            "chosenCustomerId": "DemoCust_8b908ab3-b9e6-41a9-a4e2-31cc9c5114a2"
        },
        "subscriberInfo": {
            "globalSubscriberId": "dbc2c763-6383-42d6-880a-b7d5c5bc84d9",
            "subscriberName": "oof-so-chm"
        },
        "placementDemands": [
            {
                "resourceModuleName": "vFW-SINK",
                "serviceResourceId": "vFW-SINK-XX",
                "resourceModelInfo": {
                    				"modelInvariantId": "e7227847fda3c1e8-dea67653-43744acd-abca80ef-4561b070fe7df5755c1d3859",
                    				"modelVersionId": "763731dfa6906768-84fd1cae-494b4e78-b824acd1-01fc59a5ff2dd753ac61f3e8"
                },
                "excludedCandidates": [
                    {
                        "identifierType": "vfmodule",
                        "identifiers": [
                            "e765d5764d944b8f-8755557a-41454fe7-8536bcb3-0bb6d9b1dc9aaec65927a065"
                        ]
                    }
                ]
            },
            {
                "resourceModuleName": "vPGN",
                "serviceResourceId": "vPGN-XX",
                "unique": "false",
                "resourceModelInfo": {
                    "modelInvariantId": "762472eff2f88e29-5284d571-4daa49ef-ab32aea3-3e7bee2ec355b8d13900c16f",
                    				"modelVersionId": "e02a7e5c3ccebc76-9d2766e1-436047c8-ab7caee9-73bb83b07e3b98f30d08db97"
                }
            }
        ]
    },
    "serviceInfo": {
        "serviceInstanceId": "3e8d118c209fb01e-10ca60ca-4b4b4325-b3dbb074-089b5e9e6a1cc5ad4e0499f8",
        "serviceName": "vFW_TD",
        "modelInfo": {
            "modelInvariantId": "TD-invariantId",
            "modelVersionId": "TD-versionId"
        }
    }
}

...

Code Block
languagejs
titleVFW VNF POLICY
linenumberstrue
{
    "service": "vnfPolicy",
    "policyName": "OSDF_DUBLIN.vnfPolicy_vFW_TD",
    "description": "vnfPolicy",
    "templateVersion": "OpenSource.version.1",
    "version": "oofDublin",
    "priority": "6",
    "riskType": "test",
    "riskLevel": "3",
    "guard": "False",
    "content": {
        "identity": "vnf_vFW_TD",
        "policyScope": ["TD", "vFW-SINK"],
        "policyType": "vnfPolicy",
        "resources": ["vFW-SINK"],
        "applicableResources": "any",
        "vnfProperties": [{
            "inventoryProvider": "aai",
            "serviceType": "",
            "inventoryType": "vfmodule",
            "customerId": {
            	"get_param": "Demonstration"chosen_customer_id"
            },
            "equipmentRole": "",
            "attributes": {
                "orchestrationStatus": ["active"],
                "provStatus": "ACTIVE",
                "cloudRegionId": {
                    "get_param": "chosen_region"
                },
                "service_instance_id": {
                    "get_param": "service_id"
                }
            }
        }]
    }
}

...

Code Block
languagejs
titleVPGN VNF POLICY
{
    "service": "vnfPolicy",
    "policyName": "OSDF_DUBLIN.vnfPolicy_vPGN_TD",
    "description": "vnfPolicy",
    "templateVersion": "OpenSource.version.1",
    "version": "oofDublin",
    "priority": "6",
    "riskType": "test",
    "riskLevel": "3",
    "guard": "False",
    "content": {
        "identity": "vnf_vPGN_TD",
        "policyScope": ["TD", "vPGN"],
        "policyType": "vnfPolicy",
        "resources": ["vPGN"],
        "applicableResources": "any",
        "vnfProperties": [{
            "inventoryProvider": "aai",
            "serviceType": "",
            "inventoryType": "vfmodule",
            "customerId": "Demonstration"{
            	"get_param": "chosen_customer_id"
            },
            "equipmentRole": "",
            "attributes": {
                "orchestrationStatus": ["active"],
                "provStatus": "ACTIVE",
                "cloudRegionId": {
                    "get_param": "chosen_region"
                },
                "service_instance_id": {
                    "get_param": "service_id"
                }
            }
        }]
    }
}

...

Code Block
languagejs
titleQUERY POLICY
linenumberstrue
{
  "service": "queryPolicy",
  "policyName": "OSDF_DUBLIN.QueryPolicy_vFW_TD",
  "description": "Query policy for vFW TD",
  "templateVersion": "OpenSource.version.1",
  "version": "oofDublin",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "queryProperties": [
      {"attribute":"customerLatitude", "attribute_location": "customerLatitude", "value": 1.1},
      {"attribute":"customerLongitude", "attribute_location": "customerLongitude", "value": 2.2},
      {"attribute":"chosen_region", "attribute_location": "chosenRegion"},
      {"attribute":"chosen_customer_id", "attribute_location": "chosenCustomerId"}
    ],
    "policyScope": [
            "TD",
            "vFW-SINK",
            "vPGN"
    ],
    "policyType": "request_param_query",
    "serviceName": "vFW_TD",
    "identity": "vFW_TD_Query_Policy",
    "resources": [
            "vFW-SINK",
            "vPGN"
    ]
  }
}

...

Code Block
languagejs
titleOSDF - HAS
linenumberstrue
{
    "name": "distribute_traffic_test",
    "files": {},
    "limit": 1100,
	"num_solution": 100,
    "timeout": 1200,
    "template": {
        "homing_template_version": "2018-02-01",
        "demands": {
            "vFW-SINK": [{
                "inventory_provider": "aai",
                "inventory_type": "vfmodule",
                "region": "RegionOne",
                "placement_role": "destination",
                "attributes": {
                    "orchestration-status": "active",
                    "prov-status": "ACTIVE",
                    "service_instance_id": "b73bed51-63a4-4660-8a2d-b8d4625b2cc0",
                    "global-customer-id": "Demonstration",
                    "model-invariant-id": "7e12b0e6-de72-45ee-8811-cce6fc31f65d",
        			"model-version-id": "90ce273d-463d-4a54-90fa-db8e90a0f2e2"
                },
                "excluded_candidates": [{
                	"candidate_id": "e765d576-8755-4145-8536-0bb6d9b1dc9a",
                	"inventory_type": "vfmodule"
                }]
            }],
            "vPGN": [{
                "inventory_provider": "aai",
                "inventory_type": "vfmodule",
                "region": "RegionOne",
                "placement_role": "anchor",
                "attributes": {
                    "orchestration-status": "active",
                    "prov-status": "ACTIVE",
                    "service_instance_id": "b73bed51-63a4-4660-8a2d-b8d4625b2cc0",
                    "global-customer-id": "Demonstration",
                    "model-invariant-id": "1dc4fcc4-0895-4b76-8126-34ebfe875859",
        			"model-version-id": "b99f698c-130a-4141-82c9-dbabaed7581d"
                }
            }]
        },
        "constraints": {
        	"vf_module_affinity": {
          		"type": "zone",
			    "demands": ["vFW-SINK", "vPGN"],
			    "properties": {
					"qualifier": "same",
				     "category": "region"
			    }
          }
        }
    }
}

...