'Send our capabilities to parent cells.'

def tell_parents_our_capabilities(self, ctxt):

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