diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts new file mode 100644 index 000000000..83c1db6b6 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts @@ -0,0 +1,18 @@ +import { CrushStep } from './crush-step'; + +export class CrushRule { + max_size: number; + usable_size?: number; + min_size: number; + rule_id: number; + rule_name: string; + ruleset: number; + steps: CrushStep[]; +} + +export class CrushRuleConfig { + root: string; // The name of the node under which data should be placed. + name: string; + failure_domain: string; // The type of CRUSH nodes across which we should separate replicas. + device_class?: string; // The device class data should be placed on. +} |