summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-05-26 18:48:02 +0200
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-05-26 18:54:22 +0200
commitd938d8b963837b87503c6a66b8661b2609c28233 (patch)
treebd7e8285a1235a5f7b5d95d09d6b1dfb717977d8
parentd290591a6f53d74ed00fe49e93654be5c486e998 (diff)
make cidr optional in network section
cidr defaults to '10.0.1.0/24' if not specified Change-Id: I12b25be8d4e4be3b56cf71096dfab439f91cf7d1 JIRA: - Signed-off-by: Jörgen Karlsson <jorgen.w.karlsson@ericsson.com>
-rw-r--r--yardstick/benchmark/context/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/context/model.py b/yardstick/benchmark/context/model.py
index ff56fc7fc..768c1d381 100644
--- a/yardstick/benchmark/context/model.py
+++ b/yardstick/benchmark/context/model.py
@@ -82,7 +82,7 @@ class Network(Object):
super(Network, self).__init__(name, context)
self.stack_name = context.name + "-" + self.name
self.subnet_stack_name = self.stack_name + "-subnet"
- self.subnet_cidr = attrs["cidr"]
+ self.subnet_cidr = attrs.get('cidr', '10.0.1.0/24')
self.router = None
if "external_network" in attrs: