'Emulates the server-side notifications from ml2 AgentNotifierApi.
legacy_interface is an object with \'delete\'/\'update\' methods for
core resources.'

def register_legacy_notification_callbacks(self, legacy_interface):

    self._legacy_interface = legacy_interface
    for e in (callback_events.AFTER_UPDATE, callback_events.AFTER_DELETE):
        for r in (resources.PORT, resources.NETWORK):
            registry.subscribe(self._legacy_notifier, r, e)
