Adding multi-port support for ixia taffic generator
[yardstick.git] / samples / vnf_samples / vnf_descriptors / 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             {% if user is defined %}
27             user: '{{user}}'  # Value filled by vnfdgen
28             {% endif %}
29             {% if password is defined %}
30             password: '{{password}}'  # Value filled by vnfdgen
31             {% endif %}
32             {% if ip is defined %}
33             ip: '{{ip}}'  # Value filled by vnfdgen
34             {% endif %}
35             {% if key_filename is defined %}
36             key_filename: '{{key_filename}}'  # Value filled by vnfdgen
37             {% endif %}
38         connection-point:
39         -   name: xe0
40             type: VPORT
41         -   name: xe1
42             type: VPORT
43         vdu:
44         -   id: trexgen-baremetal
45             name: trexgen-baremetal
46             description: TRex stateless traffic generator for tests
47             external-interface:
48             -   name: xe0
49                 virtual-interface:
50                     type: PCI-PASSTHROUGH
51                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
52                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
53                     local_ip: '{{ interfaces.xe0.local_ip }}' # Value filled by vnfdgen
54                     driver: '{{ interfaces.xe0.driver}}' # Value filled by vnfdgen
55                     dst_ip: '{{ interfaces.xe0.dst_ip }}' # Value filled by vnfdgen
56                     local_mac: '{{ interfaces.xe0.local_mac }}' # Value filled by vnfdgen
57                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # Value filled by vnfdgen
58                     vld_id:  '{{ interfaces.xe0.vld_id }}' # Value filled by vnfdgen
59                     bandwidth: 10 Gbps
60                 vnfd-connection-point-ref: xe0
61             -   name: xe1
62                 virtual-interface:
63                     type: PCI-PASSTHROUGH
64                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
65                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
66                     driver: '{{ interfaces.xe1.driver}}' # Value filled by vnfdgen
67                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
68                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
69                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
70                     vld_id:  '{{ interfaces.xe1.vld_id }}' # Value filled by vnfdgen
71                     bandwidth: 10 Gbps
72                 vnfd-connection-point-ref: xe1
73
74         benchmark:
75             kpi:
76                 - rx_throughput_fps
77                 - tx_throughput_fps
78                 - tx_throughput_mbps
79                 - rx_throughput_mbps
80                 - tx_throughput_pc_linerate
81                 - rx_throughput_pc_linerate
82                 - min_latency
83                 - max_latency
84                 - avg_latency