nsx_svc.register_dhcp_opts(cfg)
nsx_svc.register_metadata_opts(cfg)
lsnmanager.register_lsn_opts(cfg)
- lsn_manager = lsnmanager.PersistentLsnManager(self)
+ lsn_manager = lsnmanager.PersistentLsnManager(self.safe_reference)
self.lsn_manager = lsn_manager
if cfg.CONF.NSX.agent_mode == config.AgentModes.AGENTLESS:
- notifier = nsx_svc.DhcpAgentNotifyAPI(self, lsn_manager)
+ notifier = nsx_svc.DhcpAgentNotifyAPI(self.safe_reference,
+ lsn_manager)
self.agent_notifiers[const.AGENT_TYPE_DHCP] = notifier
# In agentless mode, ports whose owner is DHCP need to
# be special cased; so add it to the list of special
# are handled by Logical Services Nodes in NSX
cfg.CONF.set_override('network_auto_schedule', False)
LOG.warn(_('network_auto_schedule has been disabled'))
- notifier = combined.DhcpAgentNotifyAPI(self, lsn_manager)
+ notifier = combined.DhcpAgentNotifyAPI(self.safe_reference,
+ lsn_manager)
self.supported_extension_aliases.append(lsn.EXT_ALIAS)
# Add the capability to migrate dhcp and metadata services over
self.migration_manager = (
- migration.MigrationManager(self, lsn_manager, notifier))
+ migration.MigrationManager(
+ self.safe_reference, lsn_manager, notifier))
return notifier
def _init_extensions(self):
return {'network': network_id, 'report': r}
def handle_network_dhcp_access(self, context, network, action):
- self.handle_network_dhcp_access_delegate(self, context,
+ self.handle_network_dhcp_access_delegate(self.safe_reference, context,
network, action)
def handle_port_dhcp_access(self, context, port_data, action):
- self.handle_port_dhcp_access_delegate(self, context, port_data, action)
+ self.handle_port_dhcp_access_delegate(self.safe_reference, context,
+ port_data, action)
def handle_port_metadata_access(self, context, port, is_delete=False):
- self.handle_port_metadata_access_delegate(self, context,
+ self.handle_port_metadata_access_delegate(self.safe_reference, context,
port, is_delete)
def handle_router_metadata_access(self, context,
router_id, interface=None):
- self.handle_metadata_access_delegate(self, context,
+ self.handle_metadata_access_delegate(self.safe_reference, context,
router_id, interface)