Make security group configurable - dovetail 09/61409/1
authorrexlee8776 <limingjiang@huawei.com>
Wed, 8 Aug 2018 08:54:59 +0000 (08:54 +0000)
committerRex Lee <limingjiang@huawei.com>
Mon, 27 Aug 2018 03:45:49 +0000 (03:45 +0000)
commitac4587e04248eb53c4df9519b6f918567949bedc
treec33f0fc1002072eacb7eff7b1749b174f647a0d1
parent8af5c098fb0f30cc1bda0dd4431dbce1b2403a16
Make security group configurable - dovetail

Make sercurity group can be configured via the context.
The format would be:
context:
  name: demo
  image: yardstick-image
  flavor: yardstick-flavor
  user: ubuntu
  security_group:
    rules:
        - remote_ip_prefix: "0.0.0.0/0"
          protocol: "tcp"
          port_range_min: 1
          port_range_max: 65535
        - remote_ip_prefix: "0.0.0.0/0"
          protocol: "udp"
          port_range_min: 1
          port_range_max: 65535
        - remote_ip_prefix: "0.0.0.0/0"
          protocol: "icmp"

JIRA: YARDSTICK-1360

Change-Id: I00c45767ee2d70b790590e824599d5a4c274bced
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit cea576574ac0554c1320179bffe6965ac1333972)
samples/ping-security-group.yaml [new file with mode: 0644]
yardstick/benchmark/contexts/heat.py
yardstick/orchestrator/heat.py
yardstick/tests/unit/benchmark/contexts/test_heat.py
yardstick/tests/unit/orchestrator/test_heat.py