support segmentation_id for vlan provider network 61/36861/6
authorJingLu5 <lvjing5@huawei.com>
Mon, 3 Jul 2017 10:34:53 +0000 (10:34 +0000)
committerJing Lu <lvjing5@huawei.com>
Tue, 4 Jul 2017 09:39:24 +0000 (09:39 +0000)
commitffe83c920736716f0caea36dceeff7b7e910db7c
tree5270c2488280199d9a527106e511f097cd8d0f9a
parent8e2da9dd467f0e0a28bb92097d80d707d579bd4f
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>
yardstick/benchmark/contexts/heat.py
yardstick/benchmark/contexts/model.py
yardstick/orchestrator/heat.py