ironic.console.websocketproxy module¶
Websocket proxy that is compatible with OpenStack Ironic. Leverages websockify.py by Joel Martin
- class ironic.console.websocketproxy.IronicProxyRequestHandler(*args, **kwargs)[source]¶
Bases:
ProxyRequestHandler
- send_head()[source]¶
Common code for GET and HEAD commands.
This sends the response code and MIME headers.
Return value is either a file object (which has to be copied to the outputfile by the caller unless the command was HEAD, and must be closed by the caller under all circumstances), or None, in which case the caller has nothing further to do.
- class ironic.console.websocketproxy.IronicWebSocketProxy(*args, **kwargs)[source]¶
Bases:
WebSocketProxy
- class ironic.console.websocketproxy.TenantSock(reqhandler)[source]¶
Bases:
object
A socket wrapper for communicating with the tenant.
This class provides a socket-like interface to the internal websockify send/receive queue for the client connection to the tenant user. It is used with the security proxy classes.