IXIA traffic generator
[yardstick.git] / samples / vnf_samples / vnf_descriptors / ixia_rfc2544_tpl.yaml
1 #
2 #    Copyright 2016 Intel Corporation
3 #
4 #    Licensed under the Apache License, Version 2.0 (the "License");
5 #    you may not use this file except in compliance with the License.
6 #    You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #    Unless required by applicable law or agreed to in writing, software
11 #    distributed under the License is distributed on an "AS IS" BASIS,
12 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #    See the License for the specific language governing permissions and
14 #    limitations under the License.
15 #
16 vnfd:vnfd-catalog:
17     vnfd:
18     -   id: IXIATrafficGen # ISB class mapping
19         name: IXIAtrafficgen
20         short-name: ixia
21         description: IXIA stateless traffic verifier
22         mgmt-interface:
23             vdu-id: trexgen-baremetal
24             user: '{{user}}'  # Value filled by vnfdgen
25             password: '{{password}}'  # Value filled by vnfdgen
26             ip: '{{ip}}'  # Value filled by vnfdgen
27             tg-config:
28                 ixchassis: '{{tg_config.ixchassis}}' #ixia chassis ip
29                 tcl_port: '{{tg_config.tcl_port}}' # tcl server port
30                 lib_path: '{{tg_config.lib_path}}'
31                 root_dir: '{{tg_config.root_dir}}'
32                 py_lib_path: '{{tg_config.py_lib_path}}'
33                 py_bin_path: '{{tg_config.py_bin_path}}'
34                 dut_result_dir: '{{tg_config.dut_result_dir}}'
35                 version: '{{tg_config.version}}'
36         connection-point:
37         -   name: xe0
38             type: VPORT
39         -   name: xe1
40             type: VPORT
41         vdu:
42         -   id: trexgen-baremetal
43             name: trexgen-baremetal
44             description: IXIAstateless traffic verifier 
45             external-interface:
46             -   name: xe0
47                 virtual-interface:
48                     type: PCI-PASSTHROUGH
49                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
50                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
51                     local_iface_name: '{{ interfaces.xe0.local_iface_name }}' # Value filled by vnfdgen
52                     local_ip: '{{ interfaces.xe0.local_ip }}' # Value filled by vnfdgen
53                     driver: '{{ interfaces.xe0.driver}}' # Value filled by vnfdgen
54                     dst_ip: '{{ interfaces.xe0.dst_ip }}' # Value filled by vnfdgen
55                     local_mac: '{{ interfaces.xe0.local_mac }}' # Value filled by vnfdgen
56                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # Value filled by vnfdgen
57                     bandwidth: 10 Gbps
58                 vnfd-connection-point-ref: xe0
59             -   name: xe1
60                 virtual-interface:
61                     type: PCI-PASSTHROUGH
62                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
63                     local_iface_name: '{{ interfaces.xe1.local_iface_name }}' # Value filled by vnfdgen
64                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
65                     driver: '{{ interfaces.xe1.driver}}' # Value filled by vnfdgen
66                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
67                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
68                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
69                     bandwidth: 10 Gbps
70                 vnfd-connection-point-ref: xe1
71
72         benchmark:
73             kpi:
74                 - rx_throughput_fps
75                 - tx_throughput_fps
76                 - tx_throughput_mbps
77                 - rx_throughput_mbps
78                 - in_packets
79                 - out_packets