Merge "UDP relay"
[yardstick.git] / samples / vnf_samples / vnf_descriptors / udp_replay_vnf.yaml
1 #
2 # Copyright 2016-2017 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 #  This needs to be adjusted for every hardware setup
17 #
18 vnfd:vnfd-catalog:
19     vnfd:
20     -   id: UdpReplayApproxVnf
21         name: UdpReplayApproxVnf
22         short-name: UdpReplayVnf
23         description: UdpReplayVnf approximation using DPDK
24         mgmt-interface:
25             vdu-id: udp_replayvnf-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: udp_replayvnf-baremetal
45             name: udp_replayvnf-baremetal
46             description: UdpReplayVnf approximation using DPDK
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                     dpdk_port_num:   '{{ interfaces.xe0.dpdk_port_num }}' # Value filled by vnfdgen
54                     local_ip: '{{ interfaces.xe0.local_ip }}' # 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                     netmask: '{{ interfaces.xe0.netmask }}' # Value filled by vnfdgen
58                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # 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                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
65                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
66                     dpdk_port_num:   '{{ interfaces.xe1.dpdk_port_num }}' # Value filled by vnfdgen
67                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
68                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
69                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
70                     netmask: '{{ interfaces.xe1.netmask }}' # Value filled by vnfdgen
71                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
72                     bandwidth: 10 Gbps
73                 vnfd-connection-point-ref: xe1
74         benchmark:
75             kpi:
76                 - packets_in
77                 - packets_fwd
78                 - packets_dropped