diff options
author | JingLu5 <lvjing5@huawei.com> | 2017-07-03 10:34:53 +0000 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-07-04 09:39:24 +0000 |
commit | ffe83c920736716f0caea36dceeff7b7e910db7c (patch) | |
tree | 5270c2488280199d9a527106e511f097cd8d0f9a /yardstick/benchmark/contexts/model.py | |
parent | 8e2da9dd467f0e0a28bb92097d80d707d579bd4f (diff) |
support segmentation_id for vlan provider network
If a network specified in the test case is a vlan provider network, new attribute "segmentation_id" can be used to specify the desired vlan tag in the test case network section:
networks:
test-net:
cidr: '192.168.1.0/24'
provider: "vlan"
physical_network: 'physnet1'
segmentation_id: "1000"
If the "segmentation_id" attribute is absent, a random vlan tag will be allocated to the network.
Change-Id: Ic53852447a3c1bd8feb9ebd42d35f1ade3684be1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'yardstick/benchmark/contexts/model.py')
-rw-r--r-- | yardstick/benchmark/contexts/model.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yardstick/benchmark/contexts/model.py b/yardstick/benchmark/contexts/model.py index 1f8c6f11c..5077a9786 100644 --- a/yardstick/benchmark/contexts/model.py +++ b/yardstick/benchmark/contexts/model.py @@ -107,6 +107,7 @@ class Network(Object): self.router = None self.physical_network = attrs.get('physical_network', 'physnet1') self.provider = attrs.get('provider', None) + self.segmentation_id = attrs.get('segmentation_id', None) if "external_network" in attrs: self.router = Router("router", self.name, |