Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bugfix:can not run a test suite if not under yardstick root path
[yardstick.git]
/
yardstick
/
benchmark
/
contexts
/
model.py
diff --git
a/yardstick/benchmark/contexts/model.py
b/yardstick/benchmark/contexts/model.py
index
d31f4af
..
1d0a5a1
100644
(file)
--- a/
yardstick/benchmark/contexts/model.py
+++ b/
yardstick/benchmark/contexts/model.py
@@
-10,12
+10,15
@@
""" Logical model
"""
""" Logical model
"""
+from __future__ import absolute_import
+from six.moves import range
class Object(object):
'''Base class for classes in the logical model
Contains common attributes and methods
'''
class Object(object):
'''Base class for classes in the logical model
Contains common attributes and methods
'''
+
def __init__(self, name, context):
# model identities and reference
self.name = name
def __init__(self, name, context):
# model identities and reference
self.name = name
@@
-61,6
+64,7
@@
class PlacementGroup(Object):
class Router(Object):
'''Class that represents a router in the logical model'''
class Router(Object):
'''Class that represents a router in the logical model'''
+
def __init__(self, name, network_name, context, external_gateway_info):
super(self.__class__, self).__init__(name, context)
def __init__(self, name, network_name, context, external_gateway_info):
super(self.__class__, self).__init__(name, context)