How to add custom columns to the Interfaces tab for Spectrum OneClick
search cancel

How to add custom columns to the Interfaces tab for Spectrum OneClick

book

Article ID: 378408

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

The $SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config/interfaces-table-config.xml file on the Spectrum OneClick system defines the columns displayed in the Interfaces TAB of a device. Custom columns can be added by customizing the interfaces-table-config.xml file under the $SPECROOT/custom/ directory.

Environment

Release: All supported releases

Component: SPCOCK - OneClick

Resolution

In this example, the following attributes (new columns) are added to the Interfaces TAB:

  • ifConnectorPresent (0x11f62)
  • Internal_If_Alias (0x11f82)

1. Edit or create the $SPECROOT/custom/topo/config/interfaces-table-config.xml file on the OneClick web server machine.

2. Add the following entries if you are creating the file:

<?xml version="1.0" encoding="UTF-8"?>
<table idref="interfaces-table-config">
   <column-list>
           <column>
                <name>ifConnectorPresent</name>
                <hidden-by-default>false</hidden-by-default>
                <content>
                        <attribute>0x11f62</attribute>
                </content>
        </column>
           <column>
                <name>Internal_If_Alias</name>
                <hidden-by-default>false</hidden-by-default>
                <content>
                        <attribute>0x1af82</attribute>
                </content>
        </column>
    </column-list>
</table>

3. Save the file and close and re-open any OneClick Console session.