'Do any initialization that needs to be run if this is a
standalone service.'

def init_host(self):

    ctxt = context.get_admin_context()
    for network in objects.NetworkList.get_by_host(ctxt, self.host):
        self._setup_network_on_host(ctxt, network)
        if CONF.update_dns_entries:
            LOG.debug('Update    DNS    on    network    %s    for    host    %s', network['uuid'], self.host)
            dev = self.driver.get_dev(network)
            self.driver.update_dns(ctxt, dev, network)
        LOG.info(_LI('Configured    network    %(network)s    on    host    %(host)s'), {'network': network['uuid'], 'host': self.host})
