summaryrefslogtreecommitdiffstats
path: root/models-examples/src/main/resources/policies/vDNS.policy.operational.input.tosca.json
blob: bb90bbd4391a8a21f6c69cd678bd633416860b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
    "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
    "topology_template": {
        "policies": [
            {
                "operational.scaleout": {
                    "type": "onap.policies.controlloop.operational.common.Drools",
                    "type_version": "1.0.0",
                    "metadata": {
                        "policy-id": "operational.scaleout"
                    },
                    "properties": {
                        "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
                        "timeout": 1200,
                        "abatement": false,
                        "trigger": "unique-policy-id-1-scale-up",
                        "operations": [
                            {
                                "id": "unique-policy-id-1-scale-up",
                                "description": "Create a new VF Module",
                                "operation": {
                                    "actor": "SO",
                                    "operation": "VF Module Create",
                                    "target": {
                                        "targetType": "VFMODULE",
                                        "entityIds": {
                                            "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
                                            "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
                                            "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
                                            "modelVersion": 1,
                                            "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
                                        }
                                    },
                                    "payload": {
                                        "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
                                        "configurationParameters": "[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[9]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[23]\"}]"
                                    }
                                },
                                "timeout": 1200,
                                "retries": 0,
                                "success": "final_success",
                                "failure": "final_failure",
                                "failure_timeout": "final_failure_timeout",
                                "failure_retries": "final_failure_retries",
                                "failure_exception": "final_failure_exception",
                                "failure_guard": "final_failure_guard"
                            }
                        ],
                        "controllerName": "usecases"
                    }
                }
            }
        ]
    }
}
span class="p">, "@kadira/storybook-addon-knobs": "^1.7.1", "@kadira/storybook-addon-options": "^1.0.2", "babel-core": "^6.24.0", "babel-eslint": "^7.2.1", "babel-jest": "^19.0.0", "babel-loader": "^7.0.0-beta.1", "babel-plugin-transform-class-properties": "^6.10.2", "babel-plugin-transform-es2015-destructuring": "^6.9.0", "babel-plugin-transform-es2015-modules-commonjs": "^6.10.3", "babel-plugin-transform-es2015-spread": "^6.8.0", "babel-plugin-transform-object-rest-spread": "^6.8.0", "babel-plugin-transform-runtime": "^6.22.0", "babel-preset-es2015": "^6.24.0", "babel-preset-react": "^6.23.0", "babel-preset-stage-0": "^6.22.0", "css-loader": "^0.23.1", "deep-freeze": "0.0.1", "enzyme": "^2.7.1", "eslint-loader": "^1.3.0", "eslint-plugin-import": "^0.8.1", "eslint-plugin-react": "^3.14.0", "express": "^4.13.3", "file-loader": "^0.8.5", "gulp": "^3.9.1", "gulp-clean": "^0.3.1", "gulp-css-usage": "^2.0.0", "gulp-helpers": "^5.0.0", "gulp-rename": "^1.2.2", "gulp-replace": "^0.5.4", "gulp-tap": "^1.0.1", "html-loader": "^0.4.3", "http-proxy-middleware": "^0.8.2", "ignore-loader": "^0.1.1", "jasmine-core": "^2.5.2", "jest": "^19.0.2", "jshint": "^2.9.4", "json-loader": "^0.5.4", "jsx-loader": "^0.13.2", "mkdirp": "^0.5.1", "moment": "^2.18.1", "node-watch": "^0.3.5", "prompt": "^0.2.14", "react-addons-test-utils": "~15.3.2", "react-datepicker": "^0.48.0", "react-hot-loader": "^1.3.1", "rosie": "^1.6.0", "sass-loader": "^3.2.3", "source-map-loader": "^0.1.5", "storyshots": "^3.2.2", "style-loader": "^0.13.0", "svg-sprite-loader": "^0.1.1", "url-loader": "^0.5.7", "webpack": "^2.2.1", "webpack-dev-server": "^2.4.2" }, "engines": { "node": ">=5.1", "npm": ">=3.3" }, "jest": { "moduleNameMapper": { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test-utils/fileMock.js", "\\.(css|scss)$": "<rootDir>/test-utils/styleMock.js", "^nfvo-utils/RestAPIUtil.js$": "<rootDir>/test-utils/MockRest.js", "^sdc-ui/lib/react/SVGIcon.js$": "<rootDir>/test-utils/MockSVGIcon.js", "^nfvo-utils(.*)$": "<rootDir>/src/nfvo-utils$1", "^nfvo-components(.*)$": "<rootDir>/src/nfvo-components$1", "^sdc-app(.*)$": "<rootDir>/src/sdc-app$1", "^test-utils(.*)$": "<rootDir>/test-utils$1", "^i18nJson$": "<rootDir>/src/nfvo-utils/i18n/en.json", "^src(.*)$": "<rootDir>/src$1" }, "globals": { "DEBUG": false }, "setupFiles": [ "<rootDir>/test-utils/test-env-setup.js" ], "setupTestFrameworkScriptFile": "<rootDir>/test-utils/test-setup.js", "testPathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/test/nfvo-components/storyshots.test.js" ], "collectCoverageFrom": [ "src/**/*.{js,jsx}" ], "coverageReporters": [ "lcov" ] } }