7 <ng-template ngbNavContent
>
8 <cd-table [data]=
"osds"
9 (fetchData)=
"getOsdList()"
11 selectionType=
"multiClick"
13 (setExpandedRow)=
"setExpandedRow($event)"
14 (updateSelection)=
"updateSelection($event)"
15 [updateSelectionOnRefresh]=
"'never'">
17 <div class=
"table-actions btn-toolbar">
18 <cd-table-actions [permission]=
"permissions.osd"
19 [selection]=
"selection"
22 [tableActions]=
"tableActions">
24 <cd-table-actions [permission]=
"{read: true}"
25 [selection]=
"selection"
26 dropDownOnly=
"Cluster-wide configuration"
29 id=
"cluster-wide-actions"
30 [tableActions]=
"clusterWideActions">
34 <cd-osd-details cdTableDetail
35 [selection]=
"expandedRow">
42 *
ngIf=
"permissions.grafana.read">
44 i18n
>Overall Performance
</a>
45 <ng-template ngbNavContent
>
46 <cd-grafana [grafanaPath]=
"'osd-overview?'"
55 <div [ngbNavOutlet]=
"nav"></div>
57 <ng-template #markOsdConfirmationTpl
58 let-markActionDescription=
"markActionDescription"
60 <ng-container i18n
><strong>OSD(s) {{ osdIds | join }}
</strong> will be marked
61 <strong>{{ markActionDescription }}
</strong> if you proceed.
</ng-container>
64 <ng-template #criticalConfirmationTpl
65 let-safeToPerform=
"safeToPerform"
67 let-actionDescription=
"actionDescription"
69 <div *
ngIf=
"!safeToPerform"
71 <cd-alert-panel type=
"warning"
72 i18n
>The {selection.hasSingleSelection, select, true {OSD is} other {OSDs are}} not safe to be
73 {{ actionDescription }}! {{ message }}
</cd-alert-panel>
75 <ng-container i18n
><strong>OSD {{ osdIds | join }}
</strong> will be
76 <strong>{{ actionDescription }}
</strong> if you proceed.
</ng-container>
79 <ng-template #flagsTpl
81 <span *
ngFor=
"let flag of row.cdClusterFlags;"
82 class=
"badge badge-hdd mr-1">{{ flag }}
</span>
83 <span *
ngFor=
"let flag of row.cdIndivFlags;"
84 class=
"badge badge-info mr-1">{{ flag }}
</span>
87 <ng-template #osdUsageTpl
89 <cd-usage-bar [total]=
"row.stats.stat_bytes"
90 [used]=
"row.stats.stat_bytes_used"
91 [warningThreshold]=
"osdSettings.nearfull_ratio"
92 [errorThreshold]=
"osdSettings.full_ratio">
96 <ng-template #deleteOsdExtraTpl
98 <ng-container [formGroup]=
"form">
99 <ng-container formGroupName=
"child">
100 <div class=
"form-group">
101 <div class=
"custom-control custom-checkbox">
102 <input type=
"checkbox"
103 class=
"custom-control-input"
106 formControlName=
"preserve">
107 <label class=
"custom-control-label"
109 i18n
>Preserve OSD ID(s) for replacement.
</label>