Return what is supported by a compute node

Ref https://github.com/GNS3/gns3-gui/issues/1448
This commit is contained in:
Julien Duponchelle committed 2016-08-29 15:53:10 +02:00
1 parent ffe6448534
commit bbc1505274
15 files changed
+210 -68

No files matched your search

+8
View File
@@ -58,6 +58,14 @@ class BaseManager:
self._port_manager = None
self._config = Config.instance()
@classmethod
def node_types(cls):
"""
:returns: Array of supported node type on this computer
"""
# By default we transform DockerVM => docker but you can override this (see builtins)
return [cls._NODE_CLASS.__name__.rstrip('VM').lower()]
@property
def nodes(self):
"""