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?
any supported Spectrum release
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.
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>
Before making any changes, take backup of the topo-app-config.xml file.