Is it possible to create annotations in bulk, in OneCLICK topology containers?

Document ID : KB000038958
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

We need to create a massive amount of annotations in Spectrum OneCLICK topology containers, but to do so manually requires a huge effort.

Is it possible to create annotations in bulk, in OneCLICK topology containers e.g. using the modelling gateway and are there any dangers in doing so?  

 

Background: 

The OneCLICK topology container annotations are stored as packed data, and editing packed data may cause SSDB corruption, so we do NOT support it.  

 

Instructions:

However some customers have successfully done this by copying the required hex data,  verbatim without editing it.  e.g.

1. Export a container using the modelling gateway and save the xml file containing the exported topology.

2. Add an annotation to the container in the OC topology. e.g. “test_annotation_shane”

3. Export again and compare the exported topologies.

4. The difference in the xml output of a container x, after adding an annotation y, in its entirety is what needs to be added to container z, in the import xml, to add the same annotation y to it.

 

zoom_list="1.0.0.0.0.0.0.0"

topology_layout="1.0.0.0.cd.a.10.0.2d.0.1.0.0.0.0.0.32.0.0.0.35.0.0.0"

group_list="0.0.0.0.0.0.0.0"                                                               annotation="1.0.0.0.2.0.0.0.56.0.0.0.16.0.0.0.0.0.0.0.0.0.0.0.58.2.0.0.8b.2.99.0.ff.ff.ff.ff.1.0.0.0.4f.43.3a.53.61.6e.73.53.65.72.69.66.2d.50.4c.41.49.4e.2d.33.33.0.74.65.73.74.5f.61.6e.6e.6f.74.61.74.69.6f.6e.5f.73.68.61.6e.65.0.0.0.0.0"

 

NOTE: 

If you are going to work with packed data, do not edit it, as it will introduce corruption into the SSDB. Ensure you have an OnlineBackup file for the SSdb first.

The described workaround will also work cross-platform so it may allow you to verify in a Spectrum_Windows test-installation and you can then apply this to Spectrum/SpectroSERVER hosted on any other platform.

 

Additional Information: 

For more information on the Modeling Gateway Toolkit, please see:

https://docops.ca.com/display/CASP10/Modeling+Gateway+Toolkit