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"
20 class=
"btn btn-sm btn-default btn-label tc_configureCluster"
21 (click)=
"configureClusterAction()">
22 <i class=
"fa fa-fw fa-cog"
25 <ng-container i18n
>Set Cluster-wide Flags
</ng-container>
29 class=
"btn btn-sm btn-default dropdown-toggle dropdown-toggle-split">
30 <span class=
"caret caret-black"></span>
36 <a class=
"dropdown-item"
37 (click)=
"configureQosParamsAction()">
38 <i class=
"fa fa-fw fa-cog"
41 <ng-container i18n
>Set Cluster-wide Recovery Priority
</ng-container>
48 <cd-osd-details cdTableDetail
49 [selection]=
"selection">
53 <ng-template #statusColor
55 <span *
ngFor=
"let state of value; last as last">
57 [ngClass]=
"{'label-success': ['in', 'up'].includes(state), 'label-danger': ['down', 'out'].includes(state)}">{{ state }}
</span>
58 <span *
ngIf=
"!last"> </span>
62 <ng-template #osdUsageTpl
64 <cd-usage-bar [totalBytes]=
"row.stats.stat_bytes"
65 [usedBytes]=
"row.stats.stat_bytes_used">
70 *
ngIf=
"permissions.grafana.read"
71 heading=
"Overall Performance">
72 <cd-grafana [grafanaPath]=
"'osd-overview?'"
79 <ng-template #markOsdConfirmationTpl
80 let-markActionDescription=
"markActionDescription">
81 <ng-container i18n
><strong>OSD {{ selection.first().id }}
</strong> will be marked
82 <strong>{{ markActionDescription }}
</strong> if you proceed.
</ng-container>
85 <ng-template #criticalConfirmationTpl
86 let-safeToDestroyResult=
"result"
87 let-actionDescription=
"actionDescription">
88 <div *
ngIf=
"!safeToDestroyResult['is_safe_to_destroy']"
90 <cd-warning-panel i18n
>The OSD is not safe to destroy!
</cd-warning-panel>
92 <ng-container i18n
><strong>OSD {{ selection.first().id }}
</strong> will be
93 <strong>{{ actionDescription }}
</strong> if you proceed.
</ng-container>