def get_hosting_device_plugging_driver(self, context, id):
if id is None:<EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>return self._plugging_drivers[id]<EOL><DEDENT>except KeyError:<EOL><INDENT>try:<EOL><INDENT>template = self._get_hosting_device_template(context, id)<EOL>self._plugging_drivers[id] = importutils.import_object(<EOL>template['<STR_LIT>'])<EOL><DEDENT>except (ImportError, TypeError, n_exc.NeutronException):<EOL><INDENT>LOG.exception("<STR_LIT>"<EOL>"<STR_LIT>", id)<EOL><DEDENT>return self._plugging_drivers.get(id)<EOL><DEDENT>
Returns  plugging driver for hosting device template with <id>.