Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-324

OSDF-HAS API change according to change of Policy schema

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • None
    • None
    • None

      Some changes are needed inside Policy schema to support SRIOV.
      Here's the sample of the changed policy:
      {
      "service": "hpaPolicy",
      "policyName": "oofCasablanca.hpaPolicy_vFW",
      "description": "HPA policy for vFW",
      "templateVersion": "0.0.1",
      "version": "1.0",
      "priority": "3",
      "riskType": "test",
      "riskLevel": "2",
      "guard": "False",
      "content": {
      "resources": "vFW",
      "identity": "hpaPolicy_vFW",
      "policyScope": ["vFW", "US", "INTERNATIONAL", “ip", "vFW"],
      "policyType": "hpaPolicy",
      "flavorFeatures": [
      {
      “vduName” : “<vdu.Name>”,
      "type":"vnfc/tocsa.nodes.nfv.Vdu.Compute",
      "directives":[
      {
      "directive_name":"flavor",
      "attributes":[
      { "attribute_name":" oof_returned_flavor_for_firewall ", //Admin needs to ensure that this value is same as flavor parameter in HOT "attribute_value": "<Blank>” }
      ]
      }
      ]

      "flavorProperties": [
      {
      "hpa-feature": "pciePassthrough",
      "mandatory": "True",
      "architecture": "generic",
      "directives" : [
      {
      "directive_name": “pciePassthrough_directive”,
      “attributes”: [

      { “attribute_name”: “oof_returned_vnic_type_for_firewall_protected”, “attribute_value”: "direct" }

      ,

      { “attribute_name”: “oof_returned_provider_network_for_firewall_protected”, “attribute_value”: "physnet1" }

      ]
      }
      ],
      "hpa-feature-attributes": [

      { "hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "1234", "operator": "=", "unit": "" }

      ,

      { "hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "5678", "operator": "=", "unit": "" }

      ,

      { "hpa-attribute-key": "pciCount", "hpa-attribute-value": "1", "operator": ">=", "unit": "" }

      ]
      },
      {
      "hpa-feature": "pciePassthrough",
      "mandatory": "True",
      "architecture": "generic",
      "directives" : [
      {
      "directive_name": “pciePassthrough_directive”,
      “attributes”: [

      { “attribute_name”: “oof_returned_vnic_type_for_firewall_unprotected”, “attribute_value”: "direct" } { “attribute_name”: “oof_returned_provider_for_firewall_unprotected”, “attribute_value”: "physnet2" }

      ]
      }
      ],
      "hpa-feature-attributes": [

      { "hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "3333", "operator": "=", "unit": "" }

      ,

      { "hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "7777", "operator": "=", "unit": "" }

      ,

      { "hpa-attribute-key": "pciCount", "hpa-attribute-value": "1", "operator": ">=", "unit": "" }

      ]
      }
      ]
      }
      ]
      }
      }
       

            snarayanan snarayanan
            ruoyu ruoyu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: