From 8bced7102e5144aa974ee087ee6ad7a555fdacec Mon Sep 17 00:00:00 2001 From: Srinivasan Ramanathan Date: Wed, 4 Mar 2020 11:15:33 +0000 Subject: ENNI changes for MDONS usecase Added new attribute bandwidth-attribute for ENNI Made changes for AAI cleanup upon 3rd party SDNC Deregistration Change-Id: I493c994db55333b84e5ec66f36b51c5b27ad7f8a Issue-ID: AAI-2804 Signed-off-by: Srinivasan Ramanathan --- .../src/main/resources/schema/onap/query/stored-queries.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'aai-queries/src/main/resources') diff --git a/aai-queries/src/main/resources/schema/onap/query/stored-queries.json b/aai-queries/src/main/resources/schema/onap/query/stored-queries.json index ba2825c..eb59b14 100644 --- a/aai-queries/src/main/resources/schema/onap/query/stored-queries.json +++ b/aai-queries/src/main/resources/schema/onap/query/stored-queries.json @@ -48,13 +48,20 @@ "stored-query":"builder.createEdgeTraversal(EdgeType.TREE, 'pnf', 'p-interface').getVerticesByProperty('network-interface-type',porttype).store('x').cap('x').unfold().dedup()" } },{ - "getInterDomainLink": { + "getInterControllerLink": { "query":{ "required-properties":["linktype","controller1","controller2"] }, - "stored-query":"builder.createEdgeTraversal(EdgeType.COUSIN,'network-resource','esr-thirdparty-sdnc').getVerticesByProperty('thirdparty-sdnc-id',controller1).createEdgeTraversal(EdgeType.COUSIN,'esr-thirdparty-sdnc','network-resource').createEdgeTraversal(EdgeType.COUSIN,'network-resource','pnf').createEdgeTraversal(EdgeType.TREE,'pnf','p-interface').createEdgeTraversal(EdgeType.COUSIN,'p-interface','logical-link').store('x').getVerticesByProperty('link-type',linktype).where(builder.store('x').createEdgeTraversal(EdgeType.COUSIN,'logical-link','p-interface').createEdgeTraversal(EdgeType.TREE,'p-interface','pnf').createEdgeTraversal(EdgeType.COUSIN,'pnf','network-resource').createEdgeTraversal(EdgeType.COUSIN,'network-resource','esr-thirdparty-sdnc').getVerticesByProperty('thirdparty-sdnc-id',controller2)).cap('x').unfold().dedup()" + "stored-query":"(builder.createEdgeTraversal(EdgeType.COUSIN,'network-resource','esr-thirdparty-sdnc').getVerticesByProperty('thirdparty-sdnc-id',controller1).createEdgeTraversal(EdgeType.COUSIN,'esr-thirdparty-sdnc','network-resource').createEdgeTraversal(EdgeType.COUSIN,'network-resource','pnf').createEdgeTraversal(EdgeType.TREE,'pnf','p-interface').createEdgeTraversal(EdgeType.COUSIN,'p-interface','logical-link').getVerticesByProperty('link-type',linktype).store('x')).where(builder.createEdgeTraversal(EdgeType.COUSIN,'logical-link','p-interface').createEdgeTraversal(EdgeType.TREE,'p-interface','pnf').createEdgeTraversal(EdgeType.COUSIN,'pnf','network-resource').createEdgeTraversal(EdgeType.COUSIN,'network-resource','esr-thirdparty-sdnc').getVerticesByProperty('thirdparty-sdnc-id',controller2)).cap('x').unfold().dedup()" } },{ + "getInterDomainLink": { + "query":{ + "required-properties":["linktype","controller"] + }, + "stored-query":"builder.createEdgeTraversal(EdgeType.COUSIN,'network-resource','esr-thirdparty-sdnc').getVerticesByProperty('thirdparty-sdnc-id',controller).createEdgeTraversal(EdgeType.COUSIN,'esr-thirdparty-sdnc','network-resource').createEdgeTraversal(EdgeType.COUSIN,'network-resource','pnf').createEdgeTraversal(EdgeType.TREE,'pnf','p-interface').createEdgeTraversal(EdgeType.COUSIN,'p-interface','logical-link').getVerticesByProperty('link-type',linktype).store('x').cap('x').unfold().dedup()" + } + },{ "getInterfaceDetails": { "query":{ "required-properties":["portid"] -- cgit 1.2.3-korg