def setup_logical_port_connectivity(self, context, port_db,<EOL>hosting_device_id):
hosting_port = port_db.hosting_info.hosting_port<EOL>if hosting_port:<EOL><INDENT>try:<EOL><INDENT>self._dev_mgr.svc_vm_mgr.interface_attach(hosting_device_id,<EOL>hosting_port.id)<EOL>LOG.debug("<STR_LIT>",<EOL>port_db.id)<EOL><DEDENT>except nova_exc.Conflict as e:<EOL><INDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>", {'<STR_LIT:error>': str(e)})<EOL>self._gt_pool.spawn_n(self._attach_hosting_port,<EOL>hosting_device_id, hosting_port.id)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", {'<STR_LIT>': hosting_port.id,<EOL>'<STR_LIT>': hosting_device_id,<EOL>'<STR_LIT:error>': str(e)})<EOL><DEDENT><DEDENT>
Establishes connectivity for a logical port.

        This is done by hot plugging the interface(VIF) corresponding to the
        port from the VM.