from .obj import PpBaseObject
-__version__ = '0.4.1'
+__version__ = '0.4.2'
LOG = logging.getLogger(__name__)
default_template_vm = 'template.pixelpark.com'
default_template_name = 'oracle-linux-7.4-template'
default_data_size_gb = 30.0
+ default_network = '192.168.88.0_23'
# -------------------------------------------------------------------------
def __init__(
self.template_vm = self.default_template_vm
self.template_name = self.default_template_name
self.data_size_gb = self.default_data_size_gb
+ self.network = self.default_network
self.encoding = 'utf-8'
res['default_template_vm'] = self.default_template_vm
res['default_template_name'] = self.default_template_name
res['default_data_size_gb'] = self.default_data_size_gb
+ res['default_network'] = self.default_network
res['data_size_mb'] = self.data_size_mb
res['data_size_kb'] = self.data_size_kb
res['data_size'] = self.data_size
self.data_size_gb = float(value) / 1024.0 / 1024.0
if key.lower() == 'data_size':
self.data_size_gb = float(value) / 1024.0 / 1024.0 / 1024.0
+ if key.lower() == 'network':
+ self.network = value.strip()
# =============================================================================