Merge "heat: close file before parsing template"
[yardstick.git] / samples / vnf_samples / vnf_descriptors / vpe_vnf.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: VpeApproxVnf
18         name: VpeVnfSshIntel
19         short-name: VpeVnf
20         description: vPe approximation using DPDK
21         mgmt-interface:
22             vdu-id: vpevnf-baremetal
23             user: '{{user}}'  # Value filled by vnfdgen
24             password: '{{password}}'  # Value filled by vnfdgen
25             ip: '{{ip}}'  # Value filled by vnfdgen
26             host: '{{host}}'  # Value filled by vnfdgen
27         connection-point:
28         -   name: xe0
29             type: VPORT
30         -   name: xe1
31             type: VPORT
32         vdu:
33         -   id: vpevnf-baremetal
34             name: vpevnf-baremetal
35             description: vpe approximation using DPDK
36             external-interface:
37             -   name: xe0
38                 virtual-interface:
39                     type: PCI-PASSTHROUGH
40                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
41                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
42                     local_ip: '{{ interfaces.xe0.local_ip }}' # Value filled by vnfdgen
43                     dst_ip: '{{ interfaces.xe0.dst_ip }}' # Value filled by vnfdgen
44                     local_mac: '{{ interfaces.xe0.local_mac }}' # Value filled by vnfdgen
45                     netmask: '{{ interfaces.xe0.netmask }}' # Value filled by vnfdgen
46                     dst_mac: '{{ interfaces.xe0.dst_mac }}' # Value filled by vnfdgen
47                     bandwidth: 10 Gbps
48                 vnfd-connection-point-ref: xe0
49             -   name: xe1
50                 virtual-interface:
51                     type: PCI-PASSTHROUGH
52                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
53                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
54                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
55                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
56                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
57                     netmask: '{{ interfaces.xe1.netmask }}' # Value filled by vnfdgen
58                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
59                     bandwidth: 10 Gbps
60                 vnfd-connection-point-ref: xe1
61             routing_table: {{ routing_table }}
62         benchmark:
63             kpi:
64                 - packets_in
65                 - packets_fwd
66                 - packets_dropped