def set_console(self, console):
        """
        Sets the TCP console port.

        :param console: console port (integer)
        """

        self.console = console
        yield from self._hypervisor.send('vm set_con_tcp_port "{name}" {console}'.format(name=self._name, console=self.console))
def set_console ( self , console ) : self . console = console yield from self . _hypervisor . send ( 'vm set_con_tcp_port "{name}" {console}' . format ( name = self . _name , console = self . console ) )
Sets the TCP console port.

        :param console: console port (integer)