Refactor console code

Registered by Leandro Ignacio Costantino on 2014-03-13

From: https://bugs.launchpad.net/horizon/+bug/1287881

Initially Horizon only supported VNC. As support for new console types was added, the code was expanded for each console without necessarily looking at the whole, and now the code could use a bit of freshening up. This is particularly obvious in tabs.py.

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/tabs.py#L55

From a comment on https://review.openstack.org/#/c/44257/ :

"We should have a common Console class that's aware of the different types, and a common means of detecting which console type to use for the instance rather than the chain of try/except statements."

The idea is to create common code for console connections.

Blueprint information

Status:
Complete
Approver:
David Lyle
Priority:
Low
Drafter:
Leandro Ignacio Costantino
Direction:
Approved
Assignee:
Leandro Ignacio Costantino
Definition:
Approved
Series goal:
Accepted for juno
Implementation:
Implemented
Milestone target:
milestone icon 2014.2
Started by
David Lyle on 2014-03-27
Completed by
Leandro Ignacio Costantino on 2014-05-22

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/refactor-console-support,n,z

Addressed by: https://review.openstack.org/78348
    Refactor code around Console support

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.