Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 1 | <!-- Host partial HTML --> |
| 2 | <div id="ov-host"> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 3 | <div class="tabular-header"> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 4 | <h2>Hosts ({{tableData.length}} total)</h2> |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 5 | <div class="ctrl-btns"> |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 6 | <div class="refresh" ng-class="{active: autoRefresh}" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 7 | icon icon-size="42" icon-id="refresh" |
Bri Prebilic Cole | eef67ae | 2015-07-01 16:26:59 -0700 | [diff] [blame] | 8 | tooltip tt-msg="autoRefreshTip" |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 9 | ng-click="toggleRefresh()"></div> |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 10 | </div> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 11 | </div> |
| 12 | |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 13 | <div class="summary-list" onos-table-resize> |
Bri Prebilic Cole | 0c41ba2 | 2015-07-06 15:09:48 -0700 | [diff] [blame] | 14 | <div class="table-header" onos-sortable-header> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 15 | <table> |
| 16 | <tr> |
Simon Hunt | 051e9fa | 2016-01-19 15:54:22 -0800 | [diff] [blame] | 17 | <td colId="type" class="table-icon"></td> |
Simon Hunt | 8694308 | 2017-06-15 13:18:42 -0700 | [diff] [blame] | 18 | <td colId="name" sortable>Friendly Name </td> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 19 | <td colId="id" sortable>Host ID </td> |
| 20 | <td colId="mac" sortable>MAC Address </td> |
| 21 | <td colId="vlan" sortable>VLAN ID </td> |
Simon Hunt | 8694308 | 2017-06-15 13:18:42 -0700 | [diff] [blame] | 22 | <td colId="configured" sortable>Configured </td> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 23 | <td colId="ips" sortable>IP Addresses </td> |
| 24 | <td colId="location" sortable>Location </td> |
| 25 | </tr> |
| 26 | </table> |
| 27 | </div> |
Simon Hunt | 0c2c4c5 | 2015-04-02 17:42:45 -0700 | [diff] [blame] | 28 | |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 29 | <div class="table-body"> |
Bri Prebilic Cole | 70aacc4 | 2015-07-22 11:28:34 -0700 | [diff] [blame] | 30 | <table onos-flash-changes id-prop="id"> |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 31 | <tr ng-if="!tableData.length" class="no-data"> |
Simon Hunt | 8694308 | 2017-06-15 13:18:42 -0700 | [diff] [blame] | 32 | <td colspan="8"> |
Jian Li | 8baf447 | 2016-01-15 15:08:09 -0800 | [diff] [blame] | 33 | {{annots.no_rows_msg}} |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 34 | </td> |
| 35 | </tr> |
| 36 | |
Bri Prebilic Cole | 0bc4de2 | 2015-07-20 17:07:55 -0700 | [diff] [blame] | 37 | <tr ng-repeat="host in tableData track by $index" |
Simon Hunt | e408af7 | 2017-06-14 18:32:06 -0700 | [diff] [blame] | 38 | ng-click="selectCallback($event, host)" |
| 39 | ng-class="{selected: host.id === selId}" |
Bri Prebilic Cole | 70aacc4 | 2015-07-22 11:28:34 -0700 | [diff] [blame] | 40 | ng-repeat-complete row-id="{{host.id}}"> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 41 | <td class="table-icon"> |
| 42 | <div icon icon-id="{{host._iconid_type}}"></div> |
| 43 | </td> |
Simon Hunt | 8694308 | 2017-06-15 13:18:42 -0700 | [diff] [blame] | 44 | <td>{{host.name}}</td> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 45 | <td>{{host.id}}</td> |
| 46 | <td>{{host.mac}}</td> |
| 47 | <td>{{host.vlan}}</td> |
Simon Hunt | 8694308 | 2017-06-15 13:18:42 -0700 | [diff] [blame] | 48 | <td>{{host.configured}}</td> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 49 | <td>{{host.ips}}</td> |
| 50 | <td>{{host.location}}</td> |
| 51 | </tr> |
| 52 | </table> |
| 53 | </div> |
| 54 | |
| 55 | </div> |
| 56 | |
Simon Hunt | e408af7 | 2017-06-14 18:32:06 -0700 | [diff] [blame] | 57 | <host-details-panel></host-details-panel> |
| 58 | |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 59 | </div> |