diff options
author | 2017-02-14 15:12:15 +0000 | |
---|---|---|
committer | 2017-02-14 15:12:17 +0000 | |
commit | f80e6a127d51d68ff6c77196767ea8ea10e73243 (patch) | |
tree | 4d0cf0ec81578cedcf196940730685f2bbf28870 /OPENECOMP-DEMO/controller-template/configuration/functions | |
parent | 055adf10fbc9893772f4d799c5af053fe098e144 (diff) |
Init dcae.demo
Change-Id: Ifc50405276e40c6458d236cd218764573551a7aa
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'OPENECOMP-DEMO/controller-template/configuration/functions')
-rw-r--r-- | OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json b/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json new file mode 100644 index 0000000..a414c06 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json @@ -0,0 +1,71 @@ +{ + "$class": "org.openecomp.ncomp.core.function.RuleFunction", + "rules": [ + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "0", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "-1", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "2", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "4", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/name", + "match": "root", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [ + { + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/name", + "match": "mint", + "negation": "false" + }, + { + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "../name", + "match": "mobilityhome", + "negation": "false" + } + ], + "action": {"value": "QfsQuota95"} + }, + { + "matches": [], + "action": {"value": "QfsQuotaStandard"} + } + ] +}
\ No newline at end of file |