Add a test of cloud raw ethernet interface

Before touching it for the bridge support a test to prevent regressions.

Ref #761
This commit is contained in:
Julien Duponchelle
2016-11-04 16:52:29 +01:00
parent 74695efe90
commit 1b3e47ce83
2 changed files with 34 additions and 1 deletions

View File

@ -41,10 +41,13 @@ class Cloud(BaseNode):
:param project: Project instance
:param manager: Parent VM Manager
"""
_cloud_id = 0
def __init__(self, name, node_id, project, manager, ports=[]):
super().__init__(name, node_id, project, manager)
Cloud._cloud_id += 1
self._nios = {}
# If the cloud is not configured we fill it with host interfaces
if not ports or len(ports) == 0: