Merge "Re-define the framesize and flow dynamic define in testcase"
[yardstick.git] / samples / vnf_samples / vnf_descriptors / cgnapt_vnf.yaml
1 # Copyright 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 #  This needs to be adjusted for every hardware setup
16 #
17 vnfd:vnfd-catalog:
18     vnfd:
19     -   id: CgnaptApproxVnf
20         name: CgnaptVnfSshIntel
21         short-name: CgnaptVnf
22         description: CGNAPT approximation using DPDK
23         mgmt-interface:
24             vdu-id: cgnatvnf-baremetal
25             {% if user is defined %}
26             user: '{{user}}'  # Value filled by vnfdgen
27             {% endif %}
28             {% if password is defined %}
29             password: '{{password}}'  # Value filled by vnfdgen
30             {% endif %}
31             {% if ip is defined %}
32             ip: '{{ip}}'  # Value filled by vnfdgen
33             {% endif %}
34             {% if key_filename is defined %}
35             key_filename: '{{key_filename}}'  # Value filled by vnfdgen
36             {% endif %}
37         connection-point:
38         -   name: xe0
39             type: VPORT
40         -   name: xe1
41             type: VPORT
42         vdu:
43         -   id: cgnaptvnf-baremetal
44             name: cgnaptvnf-baremetal
45             description: CGNAPT approximation using DPDK
46             external-interface:
47             -   name: xe0
48                 virtual-interface:
49                     type: PCI-PASSTHROUGH
50                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
51                     vpci: '{{ interfaces.xe0.vpci }}' # Value filled by vnfdgen
52                     dpdk_port_num:   '{{ interfaces.xe0.dpdk_port_num }}' # Value filled by vnfdgen
53                     local_ip: '{{ interfaces.xe0.local_ip }}' # 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                     bandwidth: 10 Gbps
59                 vnfd-connection-point-ref: xe0
60             -   name: xe1
61                 virtual-interface:
62                     type: PCI-PASSTHROUGH
63                     # Substitution variables MUST be quoted. Otherwise Python can misinterpet them.
64                     vpci: '{{ interfaces.xe1.vpci }}' # Value filled by vnfdgen
65                     dpdk_port_num:   '{{ interfaces.xe1.dpdk_port_num }}' # Value filled by vnfdgen
66                     local_ip: '{{ interfaces.xe1.local_ip }}' # Value filled by vnfdgen
67                     dst_ip: '{{ interfaces.xe1.dst_ip }}' # Value filled by vnfdgen
68                     local_mac: '{{ interfaces.xe1.local_mac }}' # Value filled by vnfdgen
69                     netmask: '{{ interfaces.xe1.netmask }}' # Value filled by vnfdgen
70                     dst_mac: '{{ interfaces.xe1.dst_mac }}' # Value filled by vnfdgen
71                     bandwidth: 10 Gbps
72                 vnfd-connection-point-ref: xe1
73             routing_table: {{ routing_table }}
74             nd_route_tbl: {{ nd_route_tbl }}
75         benchmark:
76             kpi:
77                 - packets_in
78                 - packets_fwd
79                 - packets_dropped