Icon is not changing when Model Class is changed in Spectrum
search cancel

Icon is not changing when Model Class is changed in Spectrum

book

Article ID: 411693

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

You want to change the Model Class on SharedMediaLink and a Firewall Model (Checkpoint Firewall) and with both you can choose another Model Class, but the Icon does not change.
It works with the other Models. Why is that? Can I change it somehow?

Environment

any supported Spectrum release

Cause

Some icons are linked to model type instead of model class. For those models changing model_class will not affect icon change. Shared Media Link is also one such model where the icon is linked to model type instead of model class. 

 

Resolution

To change this, modify the SharedMediaLink  contents-registry in $SPECROOT\tomcat\webapps\spectrum\WEB-INF\topo\config\topo-app-config.xml file.

From: 

  <!-- SharedMediaLink -->
  <contents-registry>
    <icon-reg-id>fanout-icon-config</icon-reg-id>
    <information-config>view-sharedmedialink-config</information-config>
    <model-type>0x10495</model-type>
  </contents-registry>

To:

  <!-- SharedMediaLink -->
  <contents-registry>
    <icon-reg-id>fanout-icon-config</icon-reg-id>
    <information-config>view-sharedmedialink-config</information-config>
     <model-class>7</model-class>
  </contents-registry> 

After changing this, restart the tomcat server and try changing the model_class to firewall.  Now you should see the firewall icon.  

 

For fanout we have to change same file :  $SPECROOT\tomcat\webapps\spectrum\WEB-INF\topo\config\topo-app-config.xml file.

From:  
  <contents-registry>
    <icon-reg-id>fanout-icon-config</icon-reg-id>
    <model-type>0x100ae</model-type>
    <model-type>0x103d8</model-type>
  </contents-registry>
 
To:
  <contents-registry>
    <icon-reg-id>fanout-icon-config</icon-reg-id>
    <model-class>7</model-class>
    <model-type>0x103d8</model-type>
  </contents-registry>
(Remove the model-type and replace with model-class)
 
then restart the tomcat server and try

Additional Information

Before making any changes, take backup of the topo-app-config.xml file.