+ policyInstanceID := "123456"
+ var policySchemaString string
+ var key string
+ if keys[0] == "a1.policy_instance.20001.123456" {
+ policySchemaString = `{
+ "enforce":true,
+ "window_length":20,
+ "blocking_rate":20,
+ "trigger_threshold":10
+ }`
+ key = a1InstancePrefix + strconv.FormatInt(policytypeid, 10) + "." + string(policyInstanceID)
+ } else if keys[0] == "a1.policy_type.20001" {
+ policySchemaString = `{"create_schema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"additionalProperties":false,"blocking_rate":{"default":10,"description":"% Connections to block","maximum":1001,"minimum":1,"type":"number"},"enforce":{"default":"true","type":"boolean"},"window_length":{"default":1,"description":"Sliding window length (in minutes)","maximum":60,"minimum":1,"type":"integer"}},"type":"object"},"description":"various parameters to control admission of dual connection","name":"admission_control_policy_mine","policy_type_id":20001}`
+ key = a1PolicyPrefix + strconv.FormatInt((policytypeid), 10)
+ }
+ a1.Logger.Debug(" policy SchemaString %+v", policySchemaString)
+ policyTypeSchema, _ := json.Marshal((policySchemaString))
+ a1.Logger.Debug(" policyTypeSchema %+v", string(policyTypeSchema))
+
+ a1.Logger.Debug(" key for policy type %+v", key)
+ mp := map[string]interface{}{key: string(policySchemaString)}
+ a1.Logger.Debug("Get Called and mp return %+v ", mp)