From 4f81700f5d8826d59164c4976a26631c2113e38f Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Mon, 9 Mar 2020 17:08:53 +0100 Subject: Added new unit tests Added new unit tests to GraphMLDataAnalyzer class. Fixed the Sonar issue. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron Change-Id: I9a61dff2e9b0be1733de00b06c255abb8a3d5a8f --- .../sdc/asdctool/impl/GraphMLDataAnalyzer.java | 17 +- .../sdc/asdctool/impl/GraphMLDataAnalyzerTest.java | 45 +- asdctool/src/test/resources/export.graphml | 1585 ++++++++++++++++++++ 3 files changed, 1627 insertions(+), 20 deletions(-) create mode 100644 asdctool/src/test/resources/export.graphml (limited to 'asdctool') diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzer.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzer.java index 21e22be10c..312d862747 100644 --- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzer.java +++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzer.java @@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.jdom2.Document; import org.jdom2.Element; +import org.jdom2.JDOMException; import org.jdom2.filter.ElementFilter; import org.jdom2.input.SAXBuilder; import org.jdom2.util.IteratorIterable; @@ -34,6 +35,7 @@ import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileOutputStream; +import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -48,34 +50,37 @@ public class GraphMLDataAnalyzer { private static final String[] COMPONENT_INSTANCES_SHEET_HEADER = {"uniqueId", "name", "originUid", "originType", "containerUid"}; + public static final String GRAPH_ML_EXTENSION = ".graphml"; + public static final String EXCEL_EXTENSION = ".xls"; + public String analyzeGraphMLData(String[] args) { - String result = null; + String result; try { String mlFileLocation = args[0]; result = analyzeGraphMLData(mlFileLocation); - log.info("Analyzed ML file=" + mlFileLocation + ", XLS result=" + result); + log.info("Analyzed ML file={}, XLS result={}", mlFileLocation, result); } catch (Exception e) { - log.error("analyze GraphML Data failed - {}", e); + log.error("Analyze GraphML Data failed!", e); return null; } return result; } - private String analyzeGraphMLData(String mlFileLocation) throws Exception { + private String analyzeGraphMLData(String mlFileLocation) throws JDOMException, IOException { // Parse ML file SAXBuilder builder = new SAXBuilder(); File xmlFile = new File(mlFileLocation); Document document = builder.build(xmlFile); // XLS data file name - String outputFile = mlFileLocation.replace(".graphml", ".xls"); + String outputFile = mlFileLocation.replace(GRAPH_ML_EXTENSION, EXCEL_EXTENSION); try (Workbook wb = new HSSFWorkbook(); FileOutputStream fileOut = new FileOutputStream(outputFile)) { writeComponents(wb, document); writeComponentInstances(wb, document); wb.write(fileOut); } catch (Exception e) { - log.error("analyze GraphML Data failed - {}", e); + log.error("Analyze GraphML Data failed!", e); } return outputFile; } diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java index 7757b475bc..bffc0daee1 100644 --- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -22,20 +22,37 @@ package org.openecomp.sdc.asdctool.impl; import org.junit.Test; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; +import static org.openecomp.sdc.asdctool.impl.GraphMLDataAnalyzer.EXCEL_EXTENSION; +import static org.openecomp.sdc.asdctool.impl.GraphMLDataAnalyzer.GRAPH_ML_EXTENSION; +import static org.testng.AssertJUnit.assertNotNull; + public class GraphMLDataAnalyzerTest { - private GraphMLDataAnalyzer createTestSubject() { - return new GraphMLDataAnalyzer(); - } + public static final String FILE_NAME = "export"; + + @Test + public void testAnalyzeGraphMLDataNoFile() { + String[] args = new String[]{"noExistFile"}; + + // default test + GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer(); + String result = graph.analyzeGraphMLData(args); + + assertNull(result); + } + + @Test + public void testAnalyzeGraphMLData() { + String path = getClass().getClassLoader().getResource(FILE_NAME + GRAPH_ML_EXTENSION).getPath(); + String[] args = new String[]{path}; - @Test - public void testAnalyzeGraphMLData() throws Exception { - GraphMLDataAnalyzer testSubject; - String[] args = new String[] { "export", "src/main/resources/config/janusgraph.properties", "./" }; - String result; + // default test + GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer(); + String result = graph.analyzeGraphMLData(args); - // default test - testSubject = createTestSubject(); - result = testSubject.analyzeGraphMLData(args); - } + assertNotNull(result); + assertTrue(result.endsWith(EXCEL_EXTENSION)); + } } diff --git a/asdctool/src/test/resources/export.graphml b/asdctool/src/test/resources/export.graphml new file mode 100644 index 0000000000..be2756cacb --- /dev/null +++ b/asdctool/src/test/resources/export.graphml @@ -0,0 +1,1585 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 17001 + NFV VirtualLinkBitrate ScalingAspectDeltas + 1583755563448 + The VirtualLinkBitrateScalingAspectDeltas type is a policy type representing the VnfVirtualLink detail of an aspect deltas used for horizontal scaling, as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-vlbitrate-scalingAspectdeltas + vertex + 1583755563448 + policyType + ["tosca.nodes.nfv.VnfVirtualLink"] + tosca.policies.nfv.VirtualLinkBitrateScalingAspectDeltas + tosca.policies.nfv.VirtualLinkBitrateScalingAspectDeltas.1.0.policytype + 1.0 + NFV VirtualLinkBitrate ScalingAspectDeltas + false + + + 16988 + 1478896 + __NANANA__ + Represents the scaling aspect to which this policy applies + vertex + property + true + string + tosca.policies.nfv.VduScalingAspectDeltas.1.0.policytype.aspect + 1478896 + false + + + 16985 + 880712 + __NANANA__ + TCA Policy JSON + {"property":{"type":"onap.datatypes.monitoring.tca_policy","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + false + map + onap.policies.monitoring.cdap.tca.hi.lo.app.1.0.policytype.tca_policy + 880712 + false + + + 16951 + 1462512 + ["{\"validValues\":[\"host\",\"rack\"]}"] + host + affinity + vertex + property + false + string + org.openecomp.policies.placement.valet.Affinity.1.0.policytype.level + 1462512 + false + + + 16881 + Placement Colocate + 1583755563249 + Keep associated nodes (groups of nodes) based upon affinity value + true + policy-placement-colocate + vertex + 1583755563249 + policyType + org.openecomp.policies.placement.Colocate + org.openecomp.policies.placement.Colocate.1.0.policytype + 1.0 + Placement Colocate + false + + + 16851 + PM Mapper + 1583755563309 + true + policy-dcae-pm-mapper + vertex + 1583755563309 + policyType + onap.policies.monitoring.dcae-pm-mapper + onap.policies.monitoring.dcae-pm-mapper.1.0.policytype + 1.0 + PM Mapper + false + + + 16812 + 839816 + __NANANA__ + Describes the various levels of resources that can be used to instantiate the VNF using this flavour. + {"property":{"type":"tosca.datatypes.nfv.InstantiationLevel","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.InstantiationLevels.1.0.policytype.levels + 839816 + false + + + 16802 + NFV InstantiationLevels + 1583755563334 + The InstantiationLevels type is a policy type representing all the instantiation levels of resources to be instantiated within a deployment flavour and including default instantiation level in term of the number of VNFC instances to be created as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-instantiationlevels + vertex + 1583755563334 + policyType + tosca.policies.nfv.InstantiationLevels + tosca.policies.nfv.InstantiationLevels.1.0.policytype + 1.0 + NFV InstantiationLevels + false + + + 16777 + 823360 + __NANANA__ + Describe maximum scale level for total number of scaling steps that can be applied to a particular aspect + {"property":{"type":"tosca.datatypes.nfv.ScalingAspect","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.ScalingAspects.1.0.policytype.aspects + 823360 + false + + + 16774 + 1667120 + __NANANA__ + Represents the scaling aspect to which this policy applies. + vertex + property + true + string + tosca.policies.nfv.VirtualLinkBitrateScalingAspectDeltas.1.0.policytype.aspect + 1667120 + false + + + 16758 + 815280 + __NANANA__ + Describes the VnfVirtualLink scaling deltas to be applied for every scaling steps of a particular aspect. + {"property":{"type":"tosca.datatypes.nfv.VirtualLinkBitrateLevel","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.VirtualLinkBitrateScalingAspectDeltas.1.0.policytype.deltas + 815280 + false + + + 16719 + NFV AntiAffinityRule + 1583755564880 + The AntiAffinityRule describes the anti-affinity rules applicable for the defined targets + true + policy-nfv-anti-affinityrule + vertex + 1583755564880 + policyType + ["tosca.nodes.nfv.Vdu.Compute","tosca.nodes.nfv.VnfVirtualLink","tosca.groups.nfv.PlacementGroup"] + tosca.policies.nfv.AntiAffinityRule + tosca.policies.nfv.AntiAffinityRule.1.0.policytype + 1.0 + NFV AntiAffinityRule + false + + + 16696 + Placement + 1583755563204 + The TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes. + true + policy-placement + vertex + 1583755563204 + policyType + tosca.policies.Placement + tosca.policies.Placement.1.0.policytype + 1.0 + Placement + false + + + 16684 + Update + 1583755563214 + The TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes. + true + policy-update + vertex + 1583755563214 + policyType + tosca.policies.Update + tosca.policies.Update.1.0.policytype + 1.0 + Update + false + + + 16652 + NFV ScalingAspects + 1583755563413 + The ScalingAspects type is a policy type representing the scaling aspects used for horizontal scaling as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-scalingaspects + vertex + 1583755563413 + policyType + tosca.policies.nfv.ScalingAspects + tosca.policies.nfv.ScalingAspects.1.0.policytype + 1.0 + NFV ScalingAspects + false + + + 16644 + 827456 + __NANANA__ + Human readable description of the security group rule. + vertex + property + false + string + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.description + 827456 + false + + + 16634 + 811184 + __NANANA__ + Describes the virtual link levels of resources that can be used to instantiate the VNF using this flavour. + {"property":{"type":"tosca.datatypes.nfv.VirtualLinkBitrateLevel","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.VirtualLinkInstantiationLevels.1.0.policytype.levels + 811184 + false + + + 16611 + NFV Supported VnfInterface + 1583755563566 + this policy type represents interfaces produced by a VNF, the details to access them and the applicable connection points to use to access these interfaces + true + policy-nfv-supported-vnfinterface + vertex + 1583755563566 + policyType + ["tosca.nodes.nfv.VnfExtCp","tosca.nodes.nfv.VduCp"] + tosca.policies.nfv.SupportedVnfInterface + tosca.policies.nfv.SupportedVnfInterface.1.0.policytype + 1.0 + NFV Supported VnfInterface + false + + + 16598 + 1638448 + __NANANA__ + PM mapper filter on measInfo, measInfoId, measType, instanceId + {"property":{"type":"onap.datatypes.monitoring.pm-mapper-filter","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + false + map + onap.policies.monitoring.dcae-pm-mapper.1.0.policytype.pm-mapper-filter + 1638448 + false + + + 16591 + PM Subscription Handler + 1583755563316 + true + policy-dcae-pm-subscription-handler + vertex + 1583755563316 + policyType + onap.policies.monitoring.dcae-pm-subscription-handler + onap.policies.monitoring.dcae-pm-subscription-handler.1.0.policytype + 1.0 + PM Subscription Handler + false + + + 16533 + 823472 + ["{\"validValues\":[\"ipv4\",\"ipv6\"]}"] + ipv4 + Indicates the protocol carried over the Ethernet layer. + vertex + property + false + string + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.ether_type + 823472 + false + + + 16529 + 819336 + ["{\"validValues\":[\"host\",\"region\",\"compute\"]}"] + __NANANA__ + container type + vertex + property + false + string + org.openecomp.policies.placement.Antilocate.1.0.policytype.container_type + 819336 + false + + + 16473 + Placement Antilocate + 1583755563227 + My placement policy for separation based upon container type value + true + policy-placement-antilocate + vertex + 1583755563227 + policyType + org.openecomp.policies.placement.Antilocate + org.openecomp.policies.placement.Antilocate.1.0.policytype + 1.0 + Placement Antilocate + false + + + 16467 + NFV Vdu InstantiationLevels + 1583755563370 + The VduInstantiationLevels type is a policy type representing all the instantiation levels of resources to be instantiated within a deployment flavour in term of the number of VNFC instances to be created from each vdu.Compute. as defined in ETSI GS NFV-IFA 011 [1] + true + policy-nfv-vdu-instantiationlevels + vertex + 1583755563370 + policyType + ["tosca.nodes.nfv.Vdu.Compute"] + tosca.policies.nfv.VduInstantiationLevels + tosca.policies.nfv.VduInstantiationLevels.1.0.policytype + 1.0 + NFV Vdu InstantiationLevels + false + + + 16463 + 1462432 + ["{\"validValues\":[\"hopopt\",\"icmp\",\"igmp\",\"ggp\",\"ipv4\",\"st\",\"tcp\",\"cbt\",\"egp\",\"igp\",\"bbn_rcc_mon\",\"nvp_ii\",\"pup\",\"argus\",\"emcon\",\"xnet\",\"chaos\",\"udp\",\"mux\",\"dcn_meas\",\"hmp\",\"prm\",\"xns_idp\",\"trunk_1\",\"trunk_2\",\"leaf_1\",\"leaf_2\",\"rdp\",\"irtp\",\"iso_tp4\",\"netblt\",\"mfe_nsp\",\"merit_inp\",\"dccp\",\"3pc\",\"idpr\",\"xtp\",\"ddp\",\"idpr_cmtp\",\"tp++\",\"il\",\"ipv6\",\"sdrp\",\"ipv6_route\",\"ipv6_frag\",\"idrp\",\"rsvp\",\"gre\",\"dsr\",\"bna\",\"esp\",\"ah\",\"i_nlsp\",\"swipe\",\"narp\",\"mobile\",\"tlsp\",\"skip\",\"ipv6_icmp\",\"ipv6_no_nxt\",\"ipv6_opts\",\"cftp\",\"sat_expak\",\"kryptolan\",\"rvd\",\"ippc\",\"sat_mon\",\"visa\",\"ipcv\",\"cpnx\",\"cphb\",\"wsn\",\"pvp\",\"br_sat_mon\",\"sun_nd\",\"wb_mon\",\"wb_expak\",\"iso_ip\",\"vmtp\",\"secure_vmtp\",\"vines\",\"ttp\",\"iptm\",\"nsfnet_igp\",\"dgp\",\"tcf\",\"eigrp\",\"ospfigp\",\"sprite_rpc\",\"larp\",\"mtp\",\"ax.25\",\"ipip\",\"micp\",\"scc_sp\",\"etherip\",\"encap\",\"gmtp\",\"ifmp\",\"pnni\",\"pim\",\"aris\",\"scps\",\"qnx\",\"a/n\",\"ip_comp\",\"snp\",\"compaq_peer\",\"ipx_in_ip\",\"vrrp\",\"pgm\",\"l2tp\",\"ddx\",\"iatp\",\"stp\",\"srp\",\"uti\",\"smp\",\"sm\",\"ptp\",\"isis\",\"fire\",\"crtp\",\"crudp\",\"sscopmce\",\"iplt\",\"sps\",\"pipe\",\"sctp\",\"fc\",\"rsvp_e2e_ignore\",\"mobility\",\"udp_lite\",\"mpls_in_ip\",\"manet\",\"hip\",\"shim6\",\"wesp\",\"rohc\"]}"] + tcp + Indicates the protocol carried over the IP layer. Permitted values include any protocol defined in the IANA protocol registry, e.g. TCP, UDP, ICMP, etc. + vertex + property + false + string + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.protocol + 1462432 + false + + + 16445 + Scaling + 1583755563211 + The TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes. + true + policy-scaling + vertex + 1583755563211 + policyType + tosca.policies.Scaling + tosca.policies.Scaling.1.0.policytype + 1.0 + Scaling + false + + + 16414 + 1630256 + ["{\"validValues\":[\"host\",\"rack\"]}"] + host + exclusivity + vertex + property + false + string + org.openecomp.policies.placement.valet.Exclusivity.1.0.policytype.level + 1630256 + false + + + 16407 + 1433760 + __NANANA__ + The name of the policy + vertex + property + false + string + org.openecomp.policies.placement.Antilocate.1.0.policytype.name + 1433760 + false + + + 16394 + External + 1583755563290 + externally managed policy (for example, type="network assignment", source="Policy Manager", name="route target") + true + policy-external + vertex + 1583755563290 + policyType + org.openecomp.policies.External + org.openecomp.policies.External.1.0.policytype + 1.0 + External + false + + + 16379 + 876616 + __NANANA__ + The name of the server that exposes the policy with predefined type and name. + vertex + property + false + string + org.openecomp.policies.External.1.0.policytype.source + 876616 + false + + + 16273 + 848008 + ["{\"greaterOrEqual\":\"0\"}","{\"lessOrEqual\":\"65535\"}"] + 0 + Indicates minimum port number in the range that is matched by the security group rule. If a value is provided at design-time, this value may be overridden at run-time based on other deployment requirements or constraints. + vertex + property + false + integer + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.port_range_min + 848008 + false + + + 16123 + 827528 + __NANANA__ + the exact number of instances to keep up + vertex + property + true + integer + org.openecomp.policies.scaling.Fixed.1.0.policytype.quantity + 827528 + false + + + 16033 + 1470624 + ["{\"validValues\":[\"nfvi_node\",\"zone\",\"zone_group\",\"nfvi_pop\"]}"] + __NANANA__ + scope of the rule is an NFVI_node, an NFVI_PoP, etc. + vertex + property + true + string + tosca.policies.nfv.AffinityRule.1.0.policytype.scope + 1470624 + false + + + 15966 + Monitoring + 1583755563298 + A base policy type for all policies that governs monitoring provisioning + true + policy-monitoring + vertex + 1583755563298 + policyType + onap.policies.Monitoring + onap.policies.Monitoring.1.0.policytype + 1.0 + Monitoring + false + + + 15958 + Root + 1583755563198 + The TOSCA Policy Type all other TOSCA Policy Types derive from + true + policy-root + vertex + 1583755563198 + policyType + tosca.policies.Root + tosca.policies.Root.1.0.policytype + 1.0 + Root + false + + + 15953 + 868424 + __NANANA__ + The name of the policy + vertex + property + false + string + org.openecomp.policies.placement.Colocate.1.0.policytype.name + 868424 + false + + + 15948 + 1654832 + __NANANA__ + Describes the Vdu.Compute levels of resources that can be used to instantiate the VNF using this flavour + {"property":{"type":"tosca.datatypes.nfv.VduLevel","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.VduInstantiationLevels.1.0.policytype.levels + 1654832 + false + + + 15937 + 823432 + ["{\"validValues\":[\"host\",\"rack\"]}"] + host + diversity + vertex + property + false + string + org.openecomp.policies.placement.valet.Diversity.1.0.policytype.level + 823432 + false + + + 15889 + NFV VirtualLink InstantiationLevels + 1583755563406 + The VirtualLinkInstantiationLevels type is a policy type representing all the instantiation levels of virtual link resources to be instantiated within a deployment flavour as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-vl-instantiationlevels + vertex + 1583755563406 + policyType + ["tosca.nodes.nfv.VnfVirtualLink"] + tosca.policies.nfv.VirtualLinkInstantiationLevels + tosca.policies.nfv.VirtualLinkInstantiationLevels.1.0.policytype + 1.0 + NFV VirtualLink InstantiationLevels + false + + + 15860 + Placement Valet Diversity + 1583755563258 + Valet Diversity + true + policy-placement-valet-diversity + vertex + 1583755563258 + policyType + org.openecomp.policies.placement.valet.Diversity + org.openecomp.policies.placement.valet.Diversity.1.0.policytype + 1.0 + Placement Valet Diversity + false + + + 15853 + NFV Vdu ScalingAspectDeltas + 1583755563431 + The VduScalingAspectDeltas type is a policy type representing the Vdu.Compute detail of an aspect deltas used for horizontal scaling, as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-vdu-scalingAspectdeltas + vertex + 1583755563431 + policyType + ["tosca.nodes.nfv.Vdu.Compute"] + tosca.policies.nfv.VduScalingAspectDeltas + tosca.policies.nfv.VduScalingAspectDeltas.1.0.policytype + 1.0 + NFV Vdu ScalingAspectDeltas + false + + + 15849 + 1446048 + __NANANA__ + Describes the Vdu.Compute scaling deltas to be applied for every scaling steps of a particular aspect. + {"property":{"type":"tosca.datatypes.nfv.VduLevel","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + true + map + tosca.policies.nfv.VduScalingAspectDeltas.1.0.policytype.deltas + 1446048 + false + + + 15826 + TCA + 1583755563302 + true + policy-tca + vertex + 1583755563302 + policyType + onap.policies.monitoring.cdap.tca.hi.lo.app + onap.policies.monitoring.cdap.tca.hi.lo.app.1.0.policytype + 1.0 + TCA + false + + + 15818 + 1650736 + __NANANA__ + The default instantiation level for this flavour. + vertex + property + false + string + tosca.policies.nfv.InstantiationLevels.1.0.policytype.default_level + 1650736 + false + + + 15813 + 1642544 + __NANANA__ + PM Subscription Handler Subscription + {"property":{"type":"onap.datatypes.monitoring.subscription","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + false + map + onap.policies.monitoring.dcae-pm-subscription-handler.1.0.policytype.subscription + 1642544 + false + + + 15774 + Scaling Fixed + 1583755563283 + true + policy-fixed + vertex + 1583755563283 + policyType + org.openecomp.policies.scaling.Fixed + org.openecomp.policies.scaling.Fixed.1.0.policytype + 1.0 + Scaling Fixed + false + + + 15769 + 835648 + ["{\"validValues\":[\"nfvi_node\",\"zone\",\"zone_group\",\"nfvi_pop\"]}"] + __NANANA__ + scope of the rule is an NFVI_node, an NFVI_PoP, etc. + vertex + property + true + string + tosca.policies.nfv.AntiAffinityRule.1.0.policytype.scope + 835648 + false + + + 15698 + 1487088 + ["{\"validValues\":[\"vnf_indicator\",\"vnf_configuration\"]}"] + __NANANA__ + Identifies an interface produced by the VNF. + vertex + property + true + string + tosca.policies.nfv.SupportedVnfInterface.1.0.policytype.interface_name + 1487088 + false + + + 15685 + NFV VirtualLinkBitrate InitialDelta + 1583755563479 + The VirtualLinkBitrateInitialDelta type is a policy type representing the VnfVirtualLink detail of an initial deltas used for horizontal scaling, as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-vlbitrate-initialdelta + vertex + 1583755563479 + policyType + ["tosca.nodes.nfv.VnfVirtualLink"] + tosca.policies.nfv.VirtualLinkBitrateInitialDelta + tosca.policies.nfv.VirtualLinkBitrateInitialDelta.1.0.policytype + 1.0 + NFV VirtualLinkBitrate InitialDelta + false + + + 15679 + Placement Valet Exclusivity + 1583755563268 + Valet Exclusivity + true + policy-placement-valet-exclusivity + vertex + 1583755563268 + policyType + org.openecomp.policies.placement.valet.Exclusivity + org.openecomp.policies.placement.valet.Exclusivity.1.0.policytype + 1.0 + Placement Valet Exclusivity + false + + + 15638 + 1437856 + ["{\"validValues\":[\"host\",\"region\",\"compute\"]}"] + __NANANA__ + affinity + vertex + property + true + string + org.openecomp.policies.placement.Colocate.1.0.policytype.affinity + 1437856 + false + + + 15618 + 819376 + __NANANA__ + Represents the initial minimum size of the VNF. + vertex + property + true + tosca.datatypes.nfv.VirtualLinkBitrateLevel + tosca.policies.nfv.VirtualLinkBitrateInitialDelta.1.0.policytype.initial_delta + 819376 + false + + + 15577 + Placement Valet Affinity + 1583755563277 + Valet Affinity + true + placement-valet-affinity + vertex + 1583755563277 + policyType + org.openecomp.policies.placement.valet.Affinity + org.openecomp.policies.placement.valet.Affinity.1.0.policytype + 1.0 + Placement Valet Affinity + false + + + 15508 + 811072 + __NANANA__ + The name of the policy, that related to specific type, same as it is defined in the source. + vertex + property + false + string + org.openecomp.policies.External.1.0.policytype.name + 811072 + false + + + 15506 + Performance + 1583755563221 + The TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes. + true + policy-performance + vertex + 1583755563221 + policyType + tosca.policies.Performance + tosca.policies.Performance.1.0.policytype + 1.0 + Performance + false + + + 15488 + 1474800 + __NANANA__ + RCC Policy JSON + {"property":{"type":"onap.datatypes.monitoring.rcc_policy","required":false,"definition":false,"password":false,"hidden":false,"immutable":false,"isDeclaredListInput":false,"toscaPresentation":{}},"toscaPresentation":{}} + vertex + property + false + list + onap.policies.monitoring.dcae-restconfcollector.1.0.policytype.rcc_policy + 1474800 + false + + + 15476 + NFV SecurityGroupRule + 1583755563533 + The SecurityGroupRule type is a policy type specified the matching criteria for the ingress and/or egress traffic to/from visited connection points as defined in ETSI GS NFV-IFA 011 [1]. + true + policy-nfv-securitygrouprule + vertex + 1583755563533 + policyType + ["tosca.nodes.nfv.VduCp","tosca.nodes.nfv.VnfExtCp"] + tosca.policies.nfv.SecurityGroupRule + tosca.policies.nfv.SecurityGroupRule.1.0.policytype + 1.0 + NFV SecurityGroupRule + false + + + 15432 + NFV AffinityRule + 1583755564301 + The AffinityRule describes the affinity rules applicable for the defined targets + true + policy-nfv-affinityrule + vertex + 1583755564301 + policyType + ["tosca.nodes.nfv.Vdu.Compute","tosca.nodes.nfv.VnfVirtualLink","tosca.groups.nfv.PlacementGroup"] + tosca.policies.nfv.AffinityRule + tosca.policies.nfv.AffinityRule.1.0.policytype + 1.0 + NFV AffinityRule + false + + + 15418 + 827568 + ["{\"greaterOrEqual\":\"0\"}","{\"lessOrEqual\":\"65535\"}"] + 65535 + Indicates maximum port number in the range that is matched by the security group rule. If a value is provided at design-time, this value may be overridden at run-time based on other deployment requirements or constraints. + vertex + property + false + integer + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.port_range_max + 827568 + false + + + 15415 + Restconf Collector + 1583755563323 + true + policy-dcae-restconfcollector + vertex + 1583755563323 + policyType + onap.policies.monitoring.dcae-restconfcollector + onap.policies.monitoring.dcae-restconfcollector.1.0.policytype + 1.0 + Restconf Collector + false + + + 15400 + 1454240 + __NANANA__ + Represents the initial minimum size of the VNF. + vertex + property + true + tosca.datatypes.nfv.VduLevel + tosca.policies.nfv.VduInitialDelta.1.0.policytype.initial_delta + 1454240 + false + + + 15334 + 1470704 + __NANANA__ + The type (category) of the policy same as it is defined in the source. + vertex + property + false + string + org.openecomp.policies.External.1.0.policytype.type + 1470704 + false + + + 15322 + 1675312 + ["{\"validValues\":[\"ingress\",\"egress\"]}"] + ingress + The direction in which the security group rule is applied. The direction of 'ingress' or 'egress' is specified against the associated CP. I.e., 'ingress' means the packets entering a CP, while 'egress' means the packets sent out of a CP. + vertex + property + false + string + tosca.policies.nfv.SecurityGroupRule.1.0.policytype.direction + 1675312 + false + + + 15314 + 1466528 + __NANANA__ + Provide additional data to access the interface endpoint + vertex + property + false + tosca.datatypes.nfv.InterfaceDetails + tosca.policies.nfv.SupportedVnfInterface.1.0.policytype.details + 1466528 + false + + + 19121 + aspect + - + EDGE_PROPERTY + aspect + false + - + + + 19120 + deltas + - + EDGE_PROPERTY + deltas + false + - + + + 19119 + 1482992 (-) 802880 + - + DERIVED_FROM + 1482992 (-) 802880 + false + - + + + 19032 + affinity + - + EDGE_PROPERTY + affinity + false + - + + + 19031 + name + - + EDGE_PROPERTY + name + false + - + + + 19030 + 802992 (-) 798896 + - + DERIVED_FROM + 802992 (-) 798896 + false + - + + + 18942 + pm-mapper-filter + - + EDGE_PROPERTY + pm-mapper-filter + false + - + + + 18941 + 1634352 (-) 831624 + - + DERIVED_FROM + 1634352 (-) 831624 + false + - + + + 18877 + default_level + - + EDGE_PROPERTY + default_level + false + - + + + 18876 + levels + - + EDGE_PROPERTY + levels + false + - + + + 18875 + 835720 (-) 802880 + - + DERIVED_FROM + 835720 (-) 802880 + false + - + + + 18768 + scope + - + EDGE_PROPERTY + scope + false + - + + + 18767 + 831552 (-) 798896 + - + DERIVED_FROM + 831552 (-) 798896 + false + - + + + 18749 + 798896 (-) 802880 + - + DERIVED_FROM + 798896 (-) 802880 + false + - + + + 18732 + 1425568 (-) 802880 + - + DERIVED_FROM + 1425568 (-) 802880 + false + - + + + 18727 + aspects + - + EDGE_PROPERTY + aspects + false + - + + + 18726 + 884808 (-) 802880 + - + DERIVED_FROM + 884808 (-) 802880 + false + - + + + 18709 + interface_name + - + EDGE_PROPERTY + interface_name + false + - + + + 18708 + details + - + EDGE_PROPERTY + details + false + - + + + 18707 + 831664 (-) 802880 + - + DERIVED_FROM + 831664 (-) 802880 + false + - + + + 18676 + subscription + - + EDGE_PROPERTY + subscription + false + - + + + 18675 + 819264 (-) 831624 + - + DERIVED_FROM + 819264 (-) 831624 + false + - + + + 18549 + name + - + EDGE_PROPERTY + name + false + - + + + 18548 + container_type + - + EDGE_PROPERTY + container_type + false + - + + + 18547 + 1429664 (-) 798896 + - + DERIVED_FROM + 1429664 (-) 798896 + false + - + + + 18525 + levels + - + EDGE_PROPERTY + levels + false + - + + + 18524 + 843912 (-) 802880 + - + DERIVED_FROM + 843912 (-) 802880 + false + - + + + 18486 + 1421472 (-) 802880 + - + DERIVED_FROM + 1421472 (-) 802880 + false + - + + + 18438 + type + - + EDGE_PROPERTY + type + false + - + + + 18437 + source + - + EDGE_PROPERTY + source + false + - + + + 18436 + name + - + EDGE_PROPERTY + name + false + - + + + 18435 + 1466608 (-) 802880 + - + DERIVED_FROM + 1466608 (-) 802880 + false + - + + + 17995 + 831624 (-) 802880 + - + DERIVED_FROM + 831624 (-) 802880 + false + - + + + 17924 + levels + - + EDGE_PROPERTY + levels + false + - + + + 17923 + 1658928 (-) 802880 + - + DERIVED_FROM + 1658928 (-) 802880 + false + - + + + 17884 + level + - + EDGE_PROPERTY + level + false + - + + + 17883 + 1441952 (-) 798896 + - + DERIVED_FROM + 1441952 (-) 798896 + false + - + + + 17875 + aspect + - + EDGE_PROPERTY + aspect + false + - + + + 17874 + deltas + - + EDGE_PROPERTY + deltas + false + - + + + 17873 + 1663024 (-) 802880 + - + DERIVED_FROM + 1663024 (-) 802880 + false + - + + + 17844 + tca_policy + - + EDGE_PROPERTY + tca_policy + false + - + + + 17843 + 815168 (-) 831624 + - + DERIVED_FROM + 815168 (-) 831624 + false + - + + + 17787 + quantity + - + EDGE_PROPERTY + quantity + false + - + + + 17786 + 807088 (-) 1421472 + - + DERIVED_FROM + 807088 (-) 1421472 + false + - + + + 17714 + initial_delta + - + EDGE_PROPERTY + initial_delta + false + - + + + 17713 + 1458336 (-) 802880 + - + DERIVED_FROM + 1458336 (-) 802880 + false + - + + + 17709 + level + - + EDGE_PROPERTY + level + false + - + + + 17708 + 872520 (-) 798896 + - + DERIVED_FROM + 872520 (-) 798896 + false + - + + + 17544 + level + - + EDGE_PROPERTY + level + false + - + + + 17543 + 806976 (-) 798896 + - + DERIVED_FROM + 806976 (-) 798896 + false + - + + + 17457 + 1458416 (-) 802880 + - + DERIVED_FROM + 1458416 (-) 802880 + false + - + + + 17432 + direction + - + EDGE_PROPERTY + direction + false + - + + + 17431 + protocol + - + EDGE_PROPERTY + protocol + false + - + + + 17430 + port_range_min + - + EDGE_PROPERTY + port_range_min + false + - + + + 17429 + port_range_max + - + EDGE_PROPERTY + port_range_max + false + - + + + 17428 + description + - + EDGE_PROPERTY + description + false + - + + + 17427 + ether_type + - + EDGE_PROPERTY + ether_type + false + - + + + 17426 + 1671216 (-) 802880 + - + DERIVED_FROM + 1671216 (-) 802880 + false + - + + + 17409 + scope + - + EDGE_PROPERTY + scope + false + - + + + 17408 + 1679408 (-) 798896 + - + DERIVED_FROM + 1679408 (-) 798896 + false + - + + + 17407 + rcc_policy + - + EDGE_PROPERTY + rcc_policy + false + - + + + 17406 + 1646640 (-) 831624 + - + DERIVED_FROM + 1646640 (-) 831624 + false + - + + + -- cgit 1.2.3-korg