Merge "standardize ssh auth"
[yardstick.git] / samples / vnf_samples / vnf_descriptors / tg_rfc2544_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: TrexTrafficGenRFC  # nsb class mapping
18         name: trexverifier
19         short-name: trexverifier
20         description: TRex stateless traffic verifier
21         mgmt-interface:
22             vdu-id: trexgen-baremetal
23             {% if user is defined %}
24             user: '{{user}}'  # Value filled by vnfdgen
25             {% endif %}
26             {% if password is defined %}
27             password: '{{password}}'  # Value filled by vnfdgen
28             {% endif %}
29             {% if ip is defined %}
30             ip: '{{ip}}'  # Value filled by vnfdgen
31             {% endif %}
32             {% if key_filename is defined %}
33             key_filename: '{{key_filename}}'  # Value filled by vnfdgen
34             {% endif %}
35         connection-point:
36         -   name: xe0
37             type: VPORT
38         -   name: xe1
39             type: VPORT
40         vdu:
41         -   id: trexgen-baremetal
42             name: trexgen-baremetal
43             description: TRex stateless traffic verifier
44             external-interface:
45             -   name: xe0
46                 virtual-interface:
47                     type: PCI-PASSTHROUGH
48                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
49                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
50                     local_iface_name: '{{ interfaces.xe0.local_iface_name }}' # Value filled by vnfdgen
51                     local_ip: '{{ interfaces.xe0.local_ip }}' # Value filled by vnfdgen
52                     driver: '{{ interfaces.xe0.driver}}' # Value filled by vnfdgen
53                     dst_ip: '{{ interfaces.xe0.dst_ip }}' # Value filled by vnfdgen
54                     local_mac: '{{ interfaces.xe0.local_mac }}' # Value filled by vnfdgen
55                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # Value filled by vnfdgen
56                     bandwidth: 10 Gbps
57                 vnfd-connection-point-ref: xe0
58             -   name: xe1
59                 virtual-interface:
60                     type: PCI-PASSTHROUGH
61                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
62                     local_iface_name: '{{ interfaces.xe1.local_iface_name }}' # Value filled by vnfdgen
63                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
64                     driver: '{{ interfaces.xe1.driver}}' # Value filled by vnfdgen
65                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
66                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
67                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
68                     bandwidth: 10 Gbps
69                 vnfd-connection-point-ref: xe1
70
71         benchmark:
72             kpi:
73                 - rx_throughput_fps
74                 - tx_throughput_fps
75                 - tx_throughput_mbps
76                 - rx_throughput_mbps
77                 - in_packets
78                 - out_packets