blob: afb717c2f8f2a149c04186918a1005e09ce314aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
#
# Copyright 2017 ZTE Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
vnfProvider: intel
vnfProductName: openNAT
vnfSoftwareVersion: 1.0.0
vnfdVersion: 1.0.0
vnfProductInfoName: openNAT
vnfProductInfoDescription: openNAT
localizationLanguage: [english, chinese]
defaultLocalizationLanguage: english
vnfdId: openNAT-1.0
vnfmInfo: GVNFM
imports:
- defintions/tosca-simple-nfv-1.1.yaml
- defintions/tosca-simple-1.0.yaml
node_types:
tosca.nodes.nfv.VNF.vOpenNAT:
derived_from: tosca.nodes.nfv.VNF
requirements:
- sriov_plane:
capability: tosca.capabilities.nfv.VirtualLinkable
node: tosca.nodes.nfv.VnfVirtualLinkDesc
relationship: tosca.relationships.nfv.VirtualLinksTo
topology_template:
substitution_mappings:
node_type: tosca.nodes.nfv.VNF.vOpenNAT
requirements:
sriov_plane: [SRIOV_Port, virtual_link]
node_templates:
vdu_vNat:
type: tosca.nodes.nfv.VDU.Compute
properties:
name: vNat
description: the virtual machine of vNat
boot_order:
- vNAT_Storage
configurable_properties:
test:
additional_vnfc_configurable_properties:
aaa: "1"
capabilities:
virtual_compute:
properties:
virtual_cpu:
cpu_architecture: X86
num_virtual_cpu: 6
virtual_memory:
virtual_mem_size: 2 GB
numa_enabled: true
requested_additional_capabilities:
numa:
support_mandatory: true
requested_additional_capability_name: numa
target_performance_parameters:
hw:numa_nodes: "2"
hw:numa_cpus.0: "0,1"
hw:numa_mem.0: "1024"
hw:numa_cpus.1: "2,3,4,5"
hw:numa_mem.1: "1024"
# hyper_threading:
# support_mandatory: true
# requested_additional_capability_name: hyper_threading
# target_performance_parameters:
# hw:cpu_sockets : "2"
# hw:cpu_threads : "2"
# hw:cpu_cores : "2"
# hw:cpu_threads_policy: "isolate"
ovs_dpdk:
support_mandatory: true
requested_additional_capability_name: ovs_dpdk
target_performance_parameters:
sw:ovs_dpdk: "true"
requirements:
- virtual_storage:
node: vNAT_Storage
relationship:
properties:
location: /mnt/volume_0
artifacts:
vNatVNFImage:
file: /swimages/xenial-snat.qcow2
type: tosca.artifacts.nfv.SwImage
properties:
name: vNatVNFImage
version: "1.0"
checksum: "5000"
container_format: bare
disk_format: qcow2
min_disk: 10 GB
min_ram: 1 GB
size: 10 GB
sw_image: /swimages/xenial-snat.qcow2
operating_system: ubuntu
vNAT_Storage:
type: tosca.nodes.nfv.VDU.VirtualStorage
properties:
type_of_storage: volume
size_of_storage: 10 GB
rdma_enabled: false
SRIOV_Port:
type: tosca.nodes.nfv.VduCpd
properties:
virtual_network_interface_requirements:
- name: sriov
description: sriov
support_mandatory: false
requirement:
SRIOV: "true"
layer_protocol: ipv4
description: sriov port
requirements:
- virtual_binding: vdu_vNat
|