Merge "Bugfix: ha test case criteria pass when sla not pass"
[yardstick.git] / samples / vnf_samples / vnf_descriptors / prox_vnf-1.yaml
1 # Copyright (c) 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: ProxApproxVnf
18         name: ProxVnf
19         short-name: ProxVnf
20         description: PROX approximation using DPDK
21         mgmt-interface:
22             vdu-id: prox-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         vdu:
39         -   id: proxvnf-baremetal
40             name: proxvnf-baremetal
41             description: PROX approximation using DPDK
42             vm-flavor:
43                 vcpu-count: '4'
44                 memory-mb: '4096'
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                     dpdk_port_num:   '{{ interfaces.xe0.dpdk_port_num }}' # 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                     netmask: '{{ interfaces.xe0.netmask }}' # 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             routing_table: {{ routing_table }}
62             nd_route_tbl: {{ nd_route_tbl }}
63         benchmark:
64             kpi:
65                 - packets_in
66                 - packets_fwd
67                 - packets_dropped