コード例 #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)