'Checks if legacy interface is expecting calls for resource.
looks for port_update, network_delete, etc and calls them with
the payloads the handlers are expecting (an ID).'

def _legacy_notifier(self, rtype, event, trigger, context, resource_id, **kwargs):

    rtype = rtype.lower()
    is_delete = (event == callback_events.AFTER_DELETE)
    suffix = ('delete' if is_delete else 'update')
    method = ('%s_%s' % (rtype, suffix))
    if (not hasattr(self._legacy_interface, method)):
        return
    payload = {rtype: {'id': resource_id}, ('%s_id' % rtype): resource_id}
    getattr(self._legacy_interface, method)(context, **payload)
