From a488f5dcc1f85d7d7995bca55ab6b02316512707 Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Fri, 8 Dec 2017 17:10:09 -0500 Subject: Add the service model custom query Issue-ID: AAI-557 Change-Id: Ibe6ab6a565d0db65edd29e110ad1283c1af4e3f0 Signed-off-by: Venkata Harish K Kajur --- .../bundleconfig-local/etc/query/stored-queries.properties | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'aai-traversal/bundleconfig-local/etc') 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() + -- cgit 1.2.3-korg