'Send our capacities to parent cells.'

def tell_parents_our_capacities(self, ctxt):

    parent_cells = self.state_manager.get_parent_cells()
    if (not parent_cells):
        return
    my_cell_info = self.state_manager.get_my_state()
    capacities = self.state_manager.get_our_capacities()
    parent_cell_names = ','.join((x.name for x in parent_cells))
    LOG.debug('Updating    parents    [%(parent_cell_names)s]    with    our    capacities:    %(capacities)s', {'parent_cell_names': parent_cell_names, 'capacities': capacities})
    method_kwargs = {'cell_name': my_cell_info.name, 'capacities': capacities}
    for cell in parent_cells:
        message = _TargetedMessage(self, ctxt, 'update_capacities', method_kwargs, 'up', cell, fanout=True)
        message.process()
