host.html 1.71 KB
<!-- Host partial HTML -->
<div id="ov-host">
    <div class="tabular-header">
        <h2>Hosts ({{tableData.length}} total)</h2>
        <div class="ctrl-btns">
            <div class="refresh active"
                 icon icon-size="36" icon-id="refresh"
                 ng-click="refresh()"></div>
        </div>
    </div>

    <div class="summary-list" onos-fixed-header>

        <div class="table-header"
             onos-sortable-header sort-callback="sortCallback(requestParams)">
            <table>
                <tr>
                    <td colId="type" class="table-icon" sortable></td>
                    <td colId="id" sortable>Host ID </td>
                    <td colId="mac" sortable>MAC Address </td>
                    <td colId="vlan" sortable>VLAN ID </td>
                    <td colId="ips" sortable>IP Addresses </td>
                    <td colId="location" sortable>Location </td>
                </tr>
            </table>
        </div>

        <div class="table-body">
            <table>
                <tr ng-hide="tableData.length" class="no-data ignore-width">
                    <td colspan="6">
                        No Hosts found
                    </td>
                </tr>

                <tr ng-repeat="host in tableData"
                    ng-repeat-done>
                    <td class="table-icon">
                        <div icon icon-id="{{host._iconid_type}}"></div>
                    </td>
                    <td>{{host.id}}</td>
                    <td>{{host.mac}}</td>
                    <td>{{host.vlan}}</td>
                    <td>{{host.ips}}</td>
                    <td>{{host.location}}</td>
                </tr>
            </table>
        </div>

    </div>

</div>