Make security group configurable - dovetail 13/60813/5
authorrexlee8776 <limingjiang@huawei.com>
Wed, 8 Aug 2018 08:54:59 +0000 (08:54 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Mon, 20 Aug 2018 04:04:05 +0000 (04:04 +0000)
commitcea576574ac0554c1320179bffe6965ac1333972
tree4d9baf9d63e1c388fad138b46a11eb2591c69fdd
parent799a7d36587b14cbc0a9e24da5ba627b7ccb935c
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>
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