summaryrefslogtreecommitdiffstats
path: root/aai-traversal/bundleconfig-local/etc/query
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-12-08 17:10:09 -0500
committerVenkata Harish K Kajur <vk250x@att.com>2017-12-08 17:10:14 -0500
commita488f5dcc1f85d7d7995bca55ab6b02316512707 (patch)
tree4c1afe04deb9f3266345a951c30aaf10e5593181 /aai-traversal/bundleconfig-local/etc/query
parent091505655f376b1ccfdf26d785b612da12d661e3 (diff)
Add the service model custom query
Issue-ID: AAI-557 Change-Id: Ibe6ab6a565d0db65edd29e110ad1283c1af4e3f0 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-traversal/bundleconfig-local/etc/query')
-rw-r--r--aai-traversal/bundleconfig-local/etc/query/stored-queries.properties11
1 files changed, 10 insertions, 1 deletions
diff --git a/aai-traversal/bundleconfig-local/etc/query/stored-queries.properties b/aai-traversal/bundleconfig-local/etc/query/stored-queries.properties
index 6a7c344..0ea6ab6 100644
--- a/aai-traversal/bundleconfig-local/etc/query/stored-queries.properties
+++ b/aai-traversal/bundleconfig-local/etc/query/stored-queries.properties
@@ -406,4 +406,13 @@ queryvnfFromModelbyRegion=builder.createEdgeTraversal(EdgeType.COUSIN, 'service-
.createEdgeTraversal(EdgeType.TREE, 'tenant', 'cloud-region')\
.getVerticesByProperty('cloud-region-id', cloudRegionId)\
).store('x')\
- .cap('x').unfold().dedup() \ No newline at end of file
+ .cap('x').unfold().dedup()
+
+serviceModels-byDistributionStatus=builder.where(\
+ builder.newInstance().createEdgeTraversal(EdgeType.TREE,'model', 'model-ver')\
+ .getVerticesByProperty('distribution-status', distributionStatus)\
+ ).store('x')\
+ .createEdgeTraversal(EdgeType.TREE,'model', 'model-ver')\
+ .getVerticesByProperty('distribution-status', distributionStatus)\
+ .store('x').cap('x').unfold().dedup()
+