Пример #1
0
    def get_server(self, hostname):
        """
        Called by the plugin to load information about a particular
        node from ceph-mgr.

        :param hostname: a hostame
        """
        return ceph_state.get_server(self._handle, hostname)
Пример #2
0
 def list_servers(self):
     """
     Like ``get_server``, but instead of returning information
     about just one node, return all the nodes in an array.
     """
     return ceph_state.get_server(self._handle, None)