Versions Compared

Key

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

...

Code Block
width50%
languageyml
titleAffinity Policy with new format
{
"tosca_definitions_version": "tosca_simple_yaml_1_0_0",
"topology_template": {
"policies": [
      {
        "OSDF_CASABLANCA.Affinity_vCPE_1": {
        "type": "onap.policies.optimization.AffinityPolicy",
        "version": "1.0.0",
        "metadata": {
                "policy-id": "OSDF_CASABLANCA.Affinity_vCPE_1",
                "policy-version": 1
             },
         "properties": {
                "identity": "affinity_vCPE",
                "policyScope": [ "vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG"],
                "affinityProperties": {
                     "qualifier": "same",
                     "category": "complex"
                 },
                "policyType": "zone",
                "resources": [ "vGMuxInfra", "vG"]          }
         }
       }
     ]
   }
}


Several changes needed for OSDF

Also, according to the payload we showed in last sector, we could find that there's a few changes in the ways of filtering.

...