Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated Sample(s) 5 - 8 based on DCAEGEN2-130 and subtasks

...

As compared to the ONAP R0 release where the configuration policy was flattened into a series of key-value pairs, in the ONAP R1 release, such config info will be passed from the controller to the CDAP app as a complex json object.  A design goal for creating the schema for this policy model was to insure that the model was extensible so that a single instance of TCA could handle one or more use cases without alteration to the schema.  That said, for the Amsterdam/ONAP R1 release, we are expecting to have a single instance of TCA deployed via CLAMP for each use case.  Samples 5 through 7 illustrate a sample config policy that is expected with each use case while Sample 8 shows how a single instance could receive the policy config for all use cases.  (see also JIRA DCAEGEN2-130 and Policy R1 Amsterdam Functional Test Cases).


Sample 5 - Sample Policy, as Complex Json, Illustrating the vFW use case

Code Block
languagejs
titleSample Policy for vFW use case
{
  
Expand

 {

 
"domain": "measurementsForVfScaling",
 


  "metricsPerEventName":
[

    {

     
 [
    {
      "eventName": "vFirewallBroadcastPackets",
     

	  "controlLoopSchemaType": "VNF",
     

      "policyScope": "DCAE",
     

      "policyName": "DCAE.Config_tca-hi-lo",
     

      "policyVersion": "v0.0.1",
     


      "thresholds":
[

        {

         
 [
        {
          "closedLoopControlName": "
CL
ControlLoop-
FRWL
vFirewall-
TRAFFIC
d0a1dfc6-
SIG
94f5-
d925ed73
4fd4-
8231-4d02-9545-db4e101f88f8",         
a5b5-4630b438850a",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
vNicUsageArray[*].
receivedBroadcastPacketsAccumulated
receivedTotalPacketsDelta",
         

          "thresholdValue":
4000,         
 300,
          "direction": "LESS_OR_EQUAL",
         

          "severity": "MAJOR",
         

		  "closedLoopEventStatus": "ONSET"

        },

        {

         

        },
        {
          "closedLoopControlName": "
CL
ControlLoop-
FRWL
vFirewall-
TRAFFIC
d0a1dfc6-
SIG
94f5-
d925ed73
4fd4-
8231-4d02-9545-db4e101f88f8",         
a5b5-4630b438850a",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
vNicUsageArray[*].
receivedBroadcastPacketsAccumulated
receivedTotalPacketsDelta",
         

          "thresholdValue":
20000,         
 700,
          "direction": "GREATER_OR_EQUAL",
         

          "severity": "CRITICAL",
         

		  "closedLoopEventStatus": "ONSET"

        }

      ]

    },

  ]


        }
      ]
    }
  ]

}


Sample 6 - Sample Policy, as Complex Json, Illustrating the vDN/vLB use case

Code Block
languagejs
titlevDNS/vLB use case
{
  
Expand

{

 
"domain": "measurementsForVfScaling",
 


  "metricsPerEventName":
[

    {

     
 [
    {
      "eventName": "vLoadBalancer",
     

	  "controlLoopSchemaType": "VM",
     

      "policyScope": "DCAE",
     

      "policyName": "DCAE.Config_tca-hi-lo",
     

      "policyVersion": "v0.0.1",
     

      "thresholds":
[

        {

         
 [
        {
          "closedLoopControlName": "CL-LBAL-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
         

          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
         

          "thresholdValue":
500,         
 300,
          "direction": "
LESS
GREATER_OR_EQUAL",
         

          "severity": "
MAJOR
CRITICAL",
         

		  "closedLoopEventStatus": "ONSET"

        },

        {

          "closedLoopControlName": "CL-LBAL-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",

          "version": "1.0.2",

          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",

          "thresholdValue": 5000,

          "direction": "GREATER_OR_EQUAL",

          "severity": "CRITICAL",

          "closedLoopEventStatus": "ONSET"

        }

      ]

    }

  ]

}

Sample 7 - Sample Policy, as Complex Json, Illustrating the vCPE use case


        }
      ]
    }
  ]
  
}


Sample 7 - Sample Policy, as Complex Json, Illustrating the vCPE use case

Code Block
languagejs
titlevCPE Config Policy
{
  "domain": "measurementsForVfScaling",

  "metricsPerEventName": [
	{
      "eventName": "Measurement_vGMUX",
	  "controlLoopSchemaType": "VNF",
      "policyScope": "DCAE",
      "policyName": "DCAE.Config_tca-hi-lo",
      "policyVersion": 
Expand

{

  "domain": "measurementsForVfScaling",

  "metricsPerEventName": [

    {

      "eventName": "vCPEvGMUXPacketLoss",

      "controlLoopSchemaType": "VM",

      "policyScope": "DCAE",

      "policyName": "DCAE.Config_tca-hi-lo",

      "policyVersion":
"v0.0.1",
     

      "thresholds":
[

        {

         
 [
        {
          "closedLoopControlName": "
CL
ControlLoop-
vCPEvGMUX
vCPE-
TRAFFIC
48f0c2c3-
SIG
a172-
FB480F95
4192-
A453-6F24-B767-FD703241ABA1",         
9ae3-052274181b6e",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
additionalMeasurements[*].arrayOfFields[0].
receivedDiscardedPacketsDelta
value",
         

          "thresholdValue": 0,
         

          "direction": "EQUAL",
         

          "severity": "MAJOR",
         

		  "closedLoopEventStatus":
"ABATED

        },

        {

         
 "ABATED
        },
        {
          "closedLoopControlName": "
CL
ControlLoop-
vCPEvGMUX
vCPE-
TRAFFIC
48f0c2c3-
SIG
a172-
FB480F95
4192-
A453-6F24-B767-FD703241ABA1",         
9ae3-052274181b6e",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
additionalMeasurements[*].arrayOfFields[0].
receivedDiscardedPacketsDelta
value",
         

          "thresholdValue":
1000,         
 0,
          "direction": "GREATER
_OR_EQUAL
",
         

          "severity": "CRITICAL",
         

		  "closedLoopEventStatus": "ONSET"

        }

      ]

    }

  ]


        }
      ]
    }
  ]

}


Sample 8 - Sample Policy, Illustrating How the Policy Model is Extensible to More than One Use Case

Code Block
languagejs
titleSample Policy for all Use Cases
{
  "domain": "measurementsForVfScaling",

  "metricsPerEventName": [
    {
      "eventName": "vFirewallBroadcastPackets",
	  "controlLoopSchemaType": "VNF",
      "policyScope": "DCAE",
      "policyName": 
Expand

{

  "domain": "measurementsForVfScaling",

  "metricsPerEventName": [

    {

      "eventName": "vFirewallBroadcastPackets",

      "policyScope": "DCAE",

      "policyName":
"DCAE.Config_tca-hi-lo",
     

      "policyVersion": "v0.0.1",
     


      "thresholds":
[

        {

         
 [
        {
          "closedLoopControlName": "
CL
ControlLoop-
FRWL
vFirewall-
LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",

          "controlLoopSchemaType": "VNF",

         
d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
vNicUsageArray[*].
receivedBroadcastPacketsAccumulated
receivedTotalPacketsDelta",
         

          "thresholdValue":
4000,         
 300,
          "direction": "LESS_OR_EQUAL",
         

          "severity": "MAJOR",
         

		  "closedLoopEventStatus": "ONSET"

        },

        {

         

        },
        {
          "closedLoopControlName": "
CL
ControlLoop-
FRWL
vFirewall-
HIGH
d0a1dfc6-
TRAFFIC
94f5-
SIG
4fd4-
EA36FE84-9342-5E13-A656-EC5F21309A09",

          "controlLoopSchemaType": "VNF",

          "version":
a5b5-4630b438850a",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
vNicUsageArray[*].
receivedBroadcastPacketsAccumulated
receivedTotalPacketsDelta",
         

          "thresholdValue":
20000,         
 700,
          "direction": "GREATER_OR_EQUAL",
         

          "severity": "CRITICAL",
         

		  "closedLoopEventStatus": "ONSET"

        }

      ]

    },

    {

      "eventName": "vLoadBalancer",

      "policyScope": "DCAE",

      "policyName": "DCAE.Config_tca-hi-lo",

      "policyVersion": "v0.0.1",

      "thresholds": [

        {

          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",

          "controlLoopSchemaType": "VM",

          "version": "1.0.2",

          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",

          "thresholdValue": 500,

          "direction": "LESS_OR_EQUAL",

          "severity": "MAJOR",

          "closedLoopEventStatus": "ONSET"

        },

        {

          "closedLoopControlName": "CL-LBAL-HIGH-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",

          "controlLoopSchemaType": "VM",

          "version": "1.0.2",

          "fieldPath":

        }
      ]
    },

    {
      "eventName": "vLoadBalancer",
	  "controlLoopSchemaType": "VM",
      "policyScope": "DCAE",
      "policyName": "DCAE.Config_tca-hi-lo",
      "policyVersion": "v0.0.1",
      "thresholds": [
        {
          "closedLoopControlName": "CL-LBAL-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
          "version": "1.0.2",
          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",

          "thresholdValue": 5000,

          "direction": "GREATER_OR_EQUAL",

          "severity": "CRITICAL",

          "closedLoopEventStatus": "ONSET"

        }

      ]

    }

    {

      "eventName": "vCPEvGMUXPacketLoss",

      "policyScope": "DCAE",

      "policyName":

          "thresholdValue": 300,
          "direction": "GREATER_OR_EQUAL",
          "severity": "CRITICAL",
		  "closedLoopEventStatus": "ONSET"
        }
      ]
    },

	{
      "eventName": "Measurement_vGMUX",
	  "controlLoopSchemaType": "VNF",
      "policyScope": "DCAE",
      "policyName": "DCAE.Config_tca-hi-lo",
     

      "policyVersion": "v0.0.1",
     

      "thresholds":
[

        {

         
 [
        {
          "closedLoopControlName": "
CL
ControlLoop-
vCPEvGMUX
vCPE-
LOW
48f0c2c3-
TRAFFIC
a172-
SIG
4192-
FB480F95-A453-6F24-B767-FD703241ABA1",

          "controlLoopSchemaType": "VM",

          "version":
9ae3-052274181b6e",
          "version": "1.0.2",
         

          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
additionalMeasurements[*].
receivedDiscardedPacketsDelta",         
arrayOfFields[0].value",
          "thresholdValue": 0,
         

          "direction":
"EQUAL",          "
 "EQUAL",
          "severity": "MAJOR",
         

		  "closedLoopEventStatus": "ABATED
"

        },

        {

         

        },
        {
          "closedLoopControlName": "
CL
ControlLoop-
vCPEvGMUX
vCPE-
HIGH
48f0c2c3-
TRAFFIC
a172-
SIG
4192-
0C5920A6-B564-8035-C878-0E814352BCB2",

          "controlLoopSchemaType": "VM",

         
9ae3-052274181b6e",
          "version": "1.0.2
",         
",
          "fieldPath": "$.event.measurementsForVfScalingFields.
vNicPerformanceArray
additionalMeasurements[*].
receivedDiscardedPacketsDelta",         
arrayOfFields[0].value",
          "thresholdValue":
1000,         
 0,
          "direction": "GREATER
_OR_EQUAL
",
         

          "severity": "CRITICAL",
         

		  "closedLoopEventStatus": "ONSET"

        }

      ]

    }

    

  ]


        }
      ]
    }
	
  ]

}


SME(s):

Alexei Nekrassov

Sandeep Singh

...