We noticed that the Router and Switch names are not fully shown in OneClick
search cancel

We noticed that the Router and Switch names are not fully shown in OneClick

book

Article ID: 226801

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We have many routers and switches that have longer names and the ending of these names are not shown in OneClick and are truncated off.

This also causes a problem when we export the topology to PNG as you cannot tell which device is which because only the last few digits are different.

Router / Switches names not fully shown when you export in PNG, as the difference are the last characters i.e SW2 , SW3 , SW4 , if you cannot see the last characters you really do not know which is what.

Environment

Release : 21.2.x, 10.4.x, 

Component : Spectrum OneClick

Cause

Default Character Limit in OneClick is set to 95 characters.

Resolution

Copy the file $SPECROOT/tomcat/webapp/spectrum/WEB-INF/topo/config/default-iconlabel-config.xml to the $SPECROOT/custom/topo/config location and make these changes below

 

From

<max-background-width>95</max-background-width>
<min-background-width>95</min-background-width>

 

to a higher value

<max-background-width>140</max-background-width>
<min-background-width>140</min-background-width>

 

Close and open a new OneClick Client and you should see the longer names and now export should work as expected.  If you have longer names then 140 characters, then use a higher value.

 

Additional Information

Here is another article on OneClick customization

How to modify the label data displayed for model icons in Spectrum OneClick?