DifferenceCalculation.xml
The DifferenceCalculation.xml file is used to:
- Find the difference between the cloud topology model on the third-party cloud provider and BMC ProactiveNet. For example, difference when VMs are added or deleted, difference during the tenant organization, and so on.
- Compare the cloud topology in BMC ProactiveNet with the infrastructure in the third-party cloud provider to find out the modification in the cloud system.
The difference must be calculated on every restart of the BMC ProactiveNet cloud integrator because the possibility of the cloud topology being changed occurs during the down time of the cloud integrator.
Sample DifferenceCalculation.xml file
The following is a sample of the DifferenceCalculation.xml file when BMC ProactiveNet is integrated with VMware vCloud Director.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
This file should be used to specify context for difference calculation. Adapter author should specify information by which topology
for specific cloud can be fetched from BPPM in order to do difference calculation.
-->
- <difference-calculation-conf>
- <!-- SAMPLE XML
-->
- <topology-root-node>
<root-node-id>VCD-PVDC</root-node-id>
- <node needMorId="true">
- <!-- Tag to represent individual Node in topology around which graph isfetched
-->
<id>PVDC</id>
- <!-- Unique identification
-->
- <graph-query-criteria>
+ <class-criteria>
- <class-Attributes>
<class-attribute name="CLASS" value="BMC_Organization" operator="NOT_EQUALS" />
</class-Attributes>
</class-criteria>
</graph-query-criteria>
- <ci>
- <!-- Tag to identify CI in framework to bring graph
-->
<ci-class>BMC_ConcreteCollection</ci-class>
- <ci-attribute>
<name>CollectionType</name>
<value>ProviderVDC</value>
</ci-attribute>
</ci>
- <fetch-graph-level>
- <!-- Tag gives graph size
-->
<consumer-level>1</consumer-level>
- <!-- no of levels above CI in graph
-->
<provider-level>3</provider-level>
- <!-- no of levels bellow CI in graph
-->
</fetch-graph-level>
</node>
</topology-root-node>
- <cleanup enable="true">
- <Classes>
- <BPPMClassForCleanup id="pvdc">
- <Attributes>
<Attribute name="class" value="BMC_ConcreteCollection" />
<Attribute name="CollectionType" value="ProviderVDC" />
</Attributes>
</BPPMClassForCleanup>
...
</Classes>
- <CleanUpDetails interval="86400000">
<cleanupconfig id="PVDCClass" bppmInfo="#pvdc" constructName="ProviderVDC" isTopLevelNode="true" />
...
</CleanUpDetails>
<cloudDataFetcher>com.bmc.sa.vcloudadapter.dataFetcher.VCloudAdapterDataFetcherVCloudAdapterDataFetcher</cloudDataFetcher>
</cleanup>
</difference-calculation-conf>
- <!--
This file should be used to specify context for difference calculation. Adapter author should specify information by which topology
for specific cloud can be fetched from BPPM in order to do difference calculation.
-->
- <difference-calculation-conf>
- <!-- SAMPLE XML
-->
- <topology-root-node>
<root-node-id>VCD-PVDC</root-node-id>
- <node needMorId="true">
- <!-- Tag to represent individual Node in topology around which graph isfetched
-->
<id>PVDC</id>
- <!-- Unique identification
-->
- <graph-query-criteria>
+ <class-criteria>
- <class-Attributes>
<class-attribute name="CLASS" value="BMC_Organization" operator="NOT_EQUALS" />
</class-Attributes>
</class-criteria>
</graph-query-criteria>
- <ci>
- <!-- Tag to identify CI in framework to bring graph
-->
<ci-class>BMC_ConcreteCollection</ci-class>
- <ci-attribute>
<name>CollectionType</name>
<value>ProviderVDC</value>
</ci-attribute>
</ci>
- <fetch-graph-level>
- <!-- Tag gives graph size
-->
<consumer-level>1</consumer-level>
- <!-- no of levels above CI in graph
-->
<provider-level>3</provider-level>
- <!-- no of levels bellow CI in graph
-->
</fetch-graph-level>
</node>
</topology-root-node>
- <cleanup enable="true">
- <Classes>
- <BPPMClassForCleanup id="pvdc">
- <Attributes>
<Attribute name="class" value="BMC_ConcreteCollection" />
<Attribute name="CollectionType" value="ProviderVDC" />
</Attributes>
</BPPMClassForCleanup>
...
</Classes>
- <CleanUpDetails interval="86400000">
<cleanupconfig id="PVDCClass" bppmInfo="#pvdc" constructName="ProviderVDC" isTopLevelNode="true" />
...
</CleanUpDetails>
<cloudDataFetcher>com.bmc.sa.vcloudadapter.dataFetcher.VCloudAdapterDataFetcherVCloudAdapterDataFetcher</cloudDataFetcher>
</cleanup>
</difference-calculation-conf>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*