code: def hosting_devices_removed(self, context, hosting_data, deconfigure,
                                  host):
          
          if hosting_data:
              self._host_notification(context, 'hosting_devices_removed',
                                      {'hosting_data': hosting_data,
                                       'deconfigure': deconfigure}, host)
docs: Notify cfg agent that some hosting devices have been removed.
  
          This notification informs the cfg agent in <host> that the
          hosting devices in the <hosting_data> dictionary have been removed
          from the hosting device pool. The <hosting_data> dictionary also
          contains the ids of the affected logical resources for each hosting
          devices::
  
               {'hd_id1': {'routers': [id1, id2, ...],
                           'fw': [id1, ...],
                           ...},
                'hd_id2': {'routers': [id3, id4, ...]},
                           'fw': [id1, ...],
                           ...},
                ...}
  
          The <deconfigure> argument is True if any configurations for the
          logical resources should be removed from the hosting devices