There are two type definitions one for the crush rule itself and one
for the crush step definition which is used inside the crush rule
definition.
Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
--- /dev/null
+import { CrushStep } from './crush-step';
+
+export class CrushRule {
+ max_size: number;
+ min_size: number;
+ rule_id: number;
+ rule_name: string;
+ ruleset: number;
+ steps: CrushStep[];
+}
--- /dev/null
+export class CrushStep {
+ op: string;
+ item_name?: string;
+ item?: number;
+ type?: string;
+ num?: number;
+}