code: def console(self, console):
          
  
          if console == self._console:
              return
  
          if self._console_type == "vnc" and console is not None and console < 5900:
              raise NodeError("VNC console require a port superior or equal to 5900 currently it's {}".format(console))
  
          if self._console:
              self._manager.port_manager.release_tcp_port(self._console, self._project)
              self._console = None
          if console is not None:
              if self.console_type == "vnc":
                  self._console = self._manager.port_manager.reserve_tcp_port(console, self._project, port_range_start=5900, port_range_end=6000)
              else:
                  self._console = self._manager.port_manager.reserve_tcp_port(console, self._project)
  
              log.info("{module}: '{name}' [{id}]: console port set to {port}".format(module=self.manager.module_name,
                                                                                      name=self.name,
                                                                                      id=self.id,
                                                                                      port=console))
docs: Changes the console port
  
          :params console: Console port (integer) or None to free the port