summaryrefslogtreecommitdiff
path: root/rally-jobs
diff options
context:
space:
mode:
authorKevin Benton <kevin@benton.pub>2016-12-09 10:18:15 -0700
committerKevin Benton <blak111@gmail.com>2016-12-10 06:15:34 -0800
commit8976e42e30e21a03678c5ea7397ea0da1f30900e (patch)
tree1b2d9a0946c7a71ac6cf51ac9d84690aecb05ee9 /rally-jobs
parent69259e9525fc44c67522fd3858c1dc9e87463479 (diff)
downloadneutron-8976e42e30e21a03678c5ea7397ea0da1f30900e.tar.gz
rally trunk port list
Change-Id: Idbbe08bdef83c60fad49f49996a74fd999914fe8
Diffstat (limited to 'rally-jobs')
-rw-r--r--rally-jobs/neutron-neutron.yaml6
-rw-r--r--rally-jobs/plugins/trunk_scenario.py7
2 files changed, 10 insertions, 3 deletions
diff --git a/rally-jobs/neutron-neutron.yaml b/rally-jobs/neutron-neutron.yaml
index 77c1808628..79040d738c 100644
--- a/rally-jobs/neutron-neutron.yaml
+++ b/rally-jobs/neutron-neutron.yaml
@@ -308,10 +308,10 @@
NeutronTrunks.create_and_list_trunk_subports:
-
args:
- subport_count: 50
+ subport_count: 500
runner:
type: "constant"
- times: 10
+ times: 1
concurrency: 4
context:
users:
@@ -320,4 +320,4 @@
quotas:
neutron:
network: -1
- port: -1 \ No newline at end of file
+ port: 1000
diff --git a/rally-jobs/plugins/trunk_scenario.py b/rally-jobs/plugins/trunk_scenario.py
index abafb09e62..b11413959f 100644
--- a/rally-jobs/plugins/trunk_scenario.py
+++ b/rally-jobs/plugins/trunk_scenario.py
@@ -29,6 +29,7 @@ class TrunkLifeCycle(utils.NeutronScenario):
def run(self, subport_count=50):
net = self._create_network({})
+ self._create_subnet(net, {'cidr': '10.0.0.0/8'})
ports = [self._create_port(net, {}) for i in range(subport_count)]
parent, subports = ports[0], ports[1:]
subport_payload = [{'port_id': p['port']['id'],
@@ -38,7 +39,9 @@ class TrunkLifeCycle(utils.NeutronScenario):
trunk_payload = {'port_id': parent['port']['id'],
'sub_ports': subport_payload}
trunk = self._create_trunk(trunk_payload)
+ self._update_port(parent, {'device_id': 'sometrunk'})
self._list_trunks(id=trunk['trunk']['id'])
+ self._list_ports_by_device_id("sometrunk")
self._delete_trunk(trunk['trunk']['id'])
@atomic.action_timer("neutron.delete_trunk")
@@ -52,3 +55,7 @@ class TrunkLifeCycle(utils.NeutronScenario):
@atomic.optional_action_timer("neutron.list_trunks")
def _list_trunks(self, **kwargs):
return self.clients("neutron").list_trunks(**kwargs)["trunks"]
+
+ @atomic.optional_action_timer("neutron.list_ports_by_device_id")
+ def _list_ports_by_device_id(self, device_id):
+ return self.clients("neutron").list_ports(device_id=device_id)