def _create_hosting_devices_from_config(self):
hd_dict = config.get_specific_config('<STR_LIT>')<EOL>attr_info = ciscohostingdevicemanager.RESOURCE_ATTRIBUTE_MAP[<EOL>ciscohostingdevicemanager.DEVICES]<EOL>adm_context = bc.context.get_admin_context()<EOL>for hd_uuid, kv_dict in hd_dict.items():<EOL><INDENT>hd_uuid = config.uuidify(hd_uuid)<EOL>try:<EOL><INDENT>old_hd = self.get_hosting_device(adm_context, hd_uuid)<EOL>is_create = False<EOL><DEDENT>except ciscohostingdevicemanager.HostingDeviceNotFound:<EOL><INDENT>old_hd = {}<EOL>is_create = True<EOL><DEDENT>kv_dict['<STR_LIT:id>'] = hd_uuid<EOL>kv_dict['<STR_LIT>'] = self.l3_tenant_id()<EOL>kv_dict['<STR_LIT>'] = old_hd.get('<STR_LIT>')<EOL>kv_dict['<STR_LIT>'] = old_hd.get('<STR_LIT>')<EOL>config.verify_resource_dict(kv_dict, True, attr_info)<EOL>hd = {ciscohostingdevicemanager.DEVICE: kv_dict}<EOL>try:<EOL><INDENT>if is_create:<EOL><INDENT>self.create_hosting_device(adm_context, hd)<EOL><DEDENT>else:<EOL><INDENT>self.update_hosting_device(adm_context, kv_dict['<STR_LIT:id>'], hd)<EOL><DEDENT><DEDENT>except n_exc.NeutronException:<EOL><INDENT>with excutils.save_and_reraise_exception():<EOL><INDENT>LOG.error('<STR_LIT>'<EOL>'<STR_LIT>',<EOL>hd_uuid)<EOL><DEDENT><DEDENT><DEDENT>
To be called late during plugin initialization so that any hosting
        device specified in the config file is properly inserted in the DB.