blob: e88efa39a4584fa8a41776481d38253a1bbf9861 [file] [log] [blame]
Thomas Vachuskae586b792015-03-26 13:59:38 -07001<!-- Host partial HTML -->
2<div id="ov-host">
Bri Prebilic Cole45069382015-04-14 15:21:38 -07003 <div class="tabular-header">
Bri Prebilic Colee568ead2015-05-01 09:51:28 -07004 <h2>Hosts ({{tableData.length}} total)</h2>
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -07005 <div class="ctrl-btns">
Bri Prebilic Cole41d67652015-06-02 10:23:04 -07006 <div class="refresh" ng-class="{active: autoRefresh}"
Simon Hunt5487ce72016-06-06 15:31:10 -07007 icon icon-size="42" icon-id="refresh"
Bri Prebilic Coleeef67ae2015-07-01 16:26:59 -07008 tooltip tt-msg="autoRefreshTip"
Bri Prebilic Cole41d67652015-06-02 10:23:04 -07009 ng-click="toggleRefresh()"></div>
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -070010 </div>
Bri Prebilic Cole45069382015-04-14 15:21:38 -070011 </div>
12
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070013 <div class="summary-list" onos-table-resize>
Bri Prebilic Cole0c41ba22015-07-06 15:09:48 -070014 <div class="table-header" onos-sortable-header>
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070015 <table>
16 <tr>
Simon Hunt051e9fa2016-01-19 15:54:22 -080017 <td colId="type" class="table-icon"></td>
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070018 <td colId="id" sortable>Host ID </td>
19 <td colId="mac" sortable>MAC Address </td>
20 <td colId="vlan" sortable>VLAN ID </td>
21 <td colId="ips" sortable>IP Addresses </td>
22 <td colId="location" sortable>Location </td>
23 </tr>
24 </table>
25 </div>
Simon Hunt0c2c4c52015-04-02 17:42:45 -070026
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070027 <div class="table-body">
Bri Prebilic Cole70aacc42015-07-22 11:28:34 -070028 <table onos-flash-changes id-prop="id">
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070029 <tr ng-if="!tableData.length" class="no-data">
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070030 <td colspan="6">
Jian Li8baf4472016-01-15 15:08:09 -080031 {{annots.no_rows_msg}}
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070032 </td>
33 </tr>
34
Bri Prebilic Cole0bc4de22015-07-20 17:07:55 -070035 <tr ng-repeat="host in tableData track by $index"
Simon Hunte408af72017-06-14 18:32:06 -070036 ng-click="selectCallback($event, host)"
37 ng-class="{selected: host.id === selId}"
Bri Prebilic Cole70aacc42015-07-22 11:28:34 -070038 ng-repeat-complete row-id="{{host.id}}">
Bri Prebilic Colee568ead2015-05-01 09:51:28 -070039 <td class="table-icon">
40 <div icon icon-id="{{host._iconid_type}}"></div>
41 </td>
42 <td>{{host.id}}</td>
43 <td>{{host.mac}}</td>
44 <td>{{host.vlan}}</td>
45 <td>{{host.ips}}</td>
46 <td>{{host.location}}</td>
47 </tr>
48 </table>
49 </div>
50
51 </div>
52
Simon Hunte408af72017-06-14 18:32:06 -070053 <host-details-panel></host-details-panel>
54
Thomas Vachuskae586b792015-03-26 13:59:38 -070055</div>