From: Stephan Müller Date: Fri, 23 Mar 2018 17:09:21 +0000 (+0100) Subject: mgr/dashboard: Add crush rule type definitions X-Git-Tag: v14.0.1~96^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2f041a0f0ba7c9c45a86bf0129fb9cfc6f97fafc;p=ceph.git mgr/dashboard: Add crush rule type definitions 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 --- 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 000000000000..ef0508508ff0 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts @@ -0,0 +1,10 @@ +import { CrushStep } from './crush-step'; + +export class CrushRule { + max_size: number; + min_size: number; + rule_id: number; + rule_name: string; + ruleset: number; + steps: CrushStep[]; +} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-step.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-step.ts new file mode 100644 index 000000000000..3c46a7cd648c --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-step.ts @@ -0,0 +1,7 @@ +export class CrushStep { + op: string; + item_name?: string; + item?: number; + type?: string; + num?: number; +}