tc063: make node parameter can be pass
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc070.yaml
index 28b28b9..7ea10d8 100644 (file)
@@ -1,15 +1,27 @@
----
-# Yardstick TC070 config file
-# Measure network throughput and packet loss using pktgen.
-# Different amounts of flows are tested with, from 2 up to 1001000.
-# All tests are run 2 times each. First 2 times with the least
-# amount of ports, then 2 times with the next amount of ports,
-# and so on until all packet sizes have been run with.
+##############################################################################
+# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
 #
-# During the measurements memory usage statistics and network latency are
-# recorded/measured using free and ping, respectively.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
 
 schema: "yardstick:task:0.1"
+description: >
+    Yardstick TC070 config file;
+    Measure network throughput and packet loss using pktgen;
+    Different amounts of flows are tested with, from 2 up to 1001000;
+    All tests are run 2 times each. First 2 times with the least
+    amount of ports, then 2 times with the next amount of ports,
+    and so on until all packet sizes have been run with;
+    During the measurements memory usage statistics and network latency are
+    recorded/measured using free and ping, respectively;
+
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
 
 scenarios:
 -
@@ -66,7 +78,7 @@ scenarios:
 
 context:
   name: yardstick-TC070
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
@@ -85,3 +97,10 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
+      {% if provider == "vlan" %}
+      provider: {{provider}}
+      physical_network: {{physical_network}}
+        {% if segmentation_id %}
+      segmentation_id: {{segmentation_id}}
+        {% endif %}
+      {% endif %}
\ No newline at end of file