summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/restful/api/crush.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/restful/api/crush.py')
-rw-r--r--src/pybind/mgr/restful/api/crush.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/pybind/mgr/restful/api/crush.py b/src/pybind/mgr/restful/api/crush.py
deleted file mode 100644
index 79f9007b6fd..00000000000
--- a/src/pybind/mgr/restful/api/crush.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from pecan import expose
-from pecan.rest import RestController
-
-from restful import common, context
-
-from restful.decorators import auth
-
-
-class CrushRule(RestController):
- @expose(template='json')
- @auth
- def get(self, **kwargs):
- """
- Show crush rules
- """
- crush = context.instance.get('osd_map_crush')
- rules = crush['rules']
-
- for rule in rules:
- rule['osd_count'] = len(common.crush_rule_osds(crush['buckets'], rule))
-
- return rules
-
-class Crush(RestController):
- rule = CrushRule()