Fixed document for Grafana Port usage
[yardstick.git] / tests / unit / benchmark / scenarios / networking / tg_trex_tpl.yaml
1 # Copyright (c) 2016-2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 vnfd:vnfd-catalog:
16     vnfd:
17     -   id: TrexTrafficGen  # NSPerf class mapping
18         name: trexgen
19         short-name: trexgen
20         description: TRex stateless traffic generator for tests
21         vm-flavor:
22             vcpu-count: '4'
23             memory-mb: '4096'
24         mgmt-interface:
25             vdu-id: trexgen-baremetal
26             user: '{{user}}'  # Value filled by vnfdgen
27             password: '{{password}}'  # Value filled by vnfdgen
28             ip: '{{ip}}'  # Value filled by vnfdgen
29         connection-point:
30         -   name: xe0
31             type: VPORT
32         -   name: xe1
33             type: VPORT
34         vdu:
35         -   id: trexgen-baremetal
36             name: trexgen-baremetal
37             description: TRex stateless traffic generator for tests
38             external-interface:
39             -   name: xe0
40                 virtual-interface:
41                     type: PCI-PASSTHROUGH
42                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
43                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
44                     local_ip: '{{ interfaces.xe0.local_ip }}' # Value filled by vnfdgen
45                     driver: '{{ interfaces.xe0.driver}}' # Value filled by vnfdgen
46                     dst_ip: '{{ interfaces.xe0.dst_ip }}' # Value filled by vnfdgen
47                     local_mac: '{{ interfaces.xe0.local_mac }}' # Value filled by vnfdgen
48                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # Value filled by vnfdgen
49                     vld_id:  '{{ interfaces.xe0.vld_id }}' # Value filled by vnfdgen
50                     bandwidth: 10 Gbps
51                 vnfd-connection-point-ref: xe0
52             -   name: xe1
53                 virtual-interface:
54                     type: PCI-PASSTHROUGH
55                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
56                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
57                     driver: '{{ interfaces.xe1.driver}}' # Value filled by vnfdgen
58                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
59                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
60                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
61                     vld_id:  '{{ interfaces.xe1.vld_id }}' # Value filled by vnfdgen
62                     bandwidth: 10 Gbps
63                 vnfd-connection-point-ref: xe1
64
65         benchmark:
66             kpi:
67                 - rx_throughput_fps
68                 - tx_throughput_fps
69                 - tx_throughput_mbps
70                 - rx_throughput_mbps
71                 - tx_throughput_pc_linerate
72                 - rx_throughput_pc_linerate
73                 - min_latency
74                 - max_latency
75                 - avg_latency