summaryrefslogtreecommitdiffstats
path: root/OPENECOMP-DEMO/controller-template/configuration/functions
diff options
context:
space:
mode:
Diffstat (limited to 'OPENECOMP-DEMO/controller-template/configuration/functions')
-rw-r--r--OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json71
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