How to change the icon label information seen in Spectrum OneClick device models.

Document ID : KB000052633
Last Modified Date : 06/12/2018
Show Technical Document Details
Introduction:

By default, for device model icons, Spectrum OneClick displays the Model Name and the Device Type of the model. The solution explains how this can be changed to display additional or other information by modifying OneClick xml files.

 
Instructions:

If you would rather display the Model Name and Network Address instead of the Model Name and the Device Type, do the following:

Several xml filest must be modified and are located in the directory:

$SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config.

Specifically, the following files:

  • oneclick-device-iconbase-config.xml
  • oneclick-node-iconbase-config.xml
  • oneclick-router-iconbase-config.xml
  • oneclick-snmp-iconbase-config.xml

In each of these files, there is the following:

<column-list>  <field-column>   <column idref="column-modelname-config"/>   <column idref="column-devicetype-config"/>  </field-column> </column-list>

By default, OneClick displays the Model Name and Device Type. To change it to display Model Name and Network Address, you must change the above to the following:

<column-list>  <field-column>   <column idref="column-modelname-config"/>   <column idref="column-networkaddress-config"/>  </field-column> </column-list>

Removing the Device Type and replacing it with Network Address.

After making the above changes, you must log out of OneClick and log back in to see the changes.

Best practice for OneClick customizations is to first copy the files to the $SPECROOT/custom directory structure and then modify the file in the customer directory structure.

For example, copy the files:

from: $SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config
to: the $SPECROOT/custom/topo/config directory

and then modify the files in the $SPECROOT/custom/topo/config directory.

Files in the custom directory structure take precedence over files in the default directory structure and you do not have to worry about your customizations being overwritten by future upgrades and patch installations.

Additional Information:
Please reference the "OneClick Customization" section of the documentation for more information.

https://docops.ca.com/ca-spectrum/10-3-0/en/customizing/oneclick-customization