]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: Allow modules to get/set other module options 25651/head
authorVolker Theile <vtheile@suse.com>
Thu, 3 Jan 2019 16:02:52 +0000 (17:02 +0100)
committerVolker Theile <vtheile@suse.com>
Tue, 8 Jan 2019 10:54:37 +0000 (11:54 +0100)
commit030e85bb9c6c3571fec514f457010efea8f49296
treecec081ad7b6d6e84ee4a70eec986a2d086c25414
parentd49e2e9075f0e1ae1735bc00e5fbbb4fe6fadeba
mgr: Allow modules to get/set other module options

Add the _ceph_get_module_option_ex and _ceph_set_module_option_ex methods to the BaseMgrModule. This allows a module to get/set options from other modules, e.g. allow the Dashboard to set the telemetry module settings, either the other module is not enabled.

Fixes: https://tracker.ceph.com/issues/37722
Signed-off-by: Volker Theile <vtheile@suse.com>
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h
src/pybind/mgr/mgr_module.py
src/pybind/mgr/selftest/module.py