4 <cd-table [data]=
"osds"
5 (fetchData)=
"getOsdList()"
8 (updateSelection)=
"updateSelection($event)"
9 [updateSelectionOnRefresh]=
"'never'">
10 <div class=
"table-actions btn-toolbar">
11 <cd-table-actions [permission]=
"permissions.osd"
12 [selection]=
"selection"
14 [tableActions]=
"tableActions">
17 <div class=
"btn-group"
19 *
ngIf=
"advancedTableActions.length > 0">
21 class=
"btn btn-sm btn-default btn-label tc_configureCluster"
22 (click)=
"advancedTableActions[0].click()">
23 <i class=
"fa fa-fw {{ advancedTableActions[0].icon }}"></i><span>{{ advancedTableActions[
0].name }}
</span>
27 class=
"btn btn-sm btn-default dropdown-toggle dropdown-toggle-split"
28 *
ngIf=
"advancedTableActions.length > 1">
29 <span class=
"caret caret-black"></span>
34 <ng-container *
ngFor=
"let action of advancedTableActions | slice:1">
36 <a class=
"dropdown-item"
37 (click)=
"action.click()">
38 <i class=
"fa fa-fw {{ action.icon }}"
41 <ng-container>{{ action.name }}
</ng-container>
49 <cd-osd-details cdTableDetail
50 [selection]=
"selection">
54 <ng-template #statusColor
56 <span *
ngFor=
"let state of value; last as last">
58 [ngClass]=
"{'label-success': ['in', 'up'].includes(state), 'label-danger': ['down', 'out'].includes(state)}">{{ state }}
</span>
59 <span *
ngIf=
"!last"> </span>
63 <ng-template #osdUsageTpl
65 <cd-usage-bar [totalBytes]=
"row.stats.stat_bytes"
66 [usedBytes]=
"row.stats.stat_bytes_used">
71 *
ngIf=
"permissions.grafana.read"
72 heading=
"Overall Performance">
73 <cd-grafana [grafanaPath]=
"'osd-overview?'"
80 <ng-template #markOsdConfirmationTpl
81 let-markActionDescription=
"markActionDescription">
82 <ng-container i18n
><strong>OSD {{ selection.first().id }}
</strong> will be marked
83 <strong>{{ markActionDescription }}
</strong> if you proceed.
</ng-container>
86 <ng-template #criticalConfirmationTpl
87 let-safeToDestroyResult=
"result"
88 let-actionDescription=
"actionDescription">
89 <div *
ngIf=
"!safeToDestroyResult['is_safe_to_destroy']"
91 <cd-warning-panel i18n
>The OSD is not safe to destroy!
</cd-warning-panel>
93 <ng-container i18n
><strong>OSD {{ selection.first().id }}
</strong> will be
94 <strong>{{ actionDescription }}
</strong> if you proceed.
</ng-container>