fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / ns / ran / ran-ns.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2 metadata:
3   nsd_invariant_id: 1zx2323523xc
4   nsd_name: RAN-NS
5   nsd_file_structure_version: "1.0"
6   nsd_designer: ZTE
7   nsd_release_date_time: "2018-11-05 12:00:00"
8   
9 description: RAN Network Service
10
11 imports:
12   - type_definition.yaml
13
14 node_types:
15   onap.ran.ns:
16     derived_from: tosca.nodes.nfv.NS
17     properties:
18       descriptor_id:
19         type: string
20         required: true
21       designer:
22         type: string
23         required: true
24       version:
25         type: string
26         required: true
27       name:
28         type: string
29         required: true       
30       invariant_id:
31         type: string
32         required: true
33           
34   onap.ran.cucp:
35     derived_from: tosca.nodes.nfv.VNF
36     requirements:
37       - ran_ext_net:           
38           capability: tosca.capabilities.nfv.VirtualLinkable
39           relationship: tosca.relationships.nfv.VirtualLinksTo 
40       - ran_flat_net:
41           capability: tosca.capabilities.nfv.VirtualLinkable
42           relationship: tosca.relationships.nfv.VirtualLinksTo
43
44   onap.ran.cuup:
45     derived_from: tosca.nodes.nfv.VNF
46     requirements:
47       - ran_ext_net:           
48           capability: tosca.capabilities.nfv.VirtualLinkable
49           relationship: tosca.relationships.nfv.VirtualLinksTo 
50       - ran_flat_net:
51           capability: tosca.capabilities.nfv.VirtualLinkable
52           relationship: tosca.relationships.nfv.VirtualLinksTo
53           
54 topology_template:
55   substitution_mappings:
56     node_type: onap.ran.ns
57     properties:
58        descriptor_id: test_01
59        designer: ZTE
60        version: 1.0.1
61        name: ZTE RAN
62        invariant_id: 1zx2323523xc
63
64   node_templates:
65   
66     vl_ext_net:
67       type: tosca.nodes.nfv.NsVirtualLink
68       properties:
69         connectivity_type:
70           layer_protocol: ipv4
71         version: 1.0.1
72         vl_profile:
73           max_bit_rate_requirements:
74             root: 10000000
75             leaf: 10000000
76           min_bit_rate_requirements:
77             root: 10000000
78             leaf: 10000000
79           networkName: ran_ext_net
80           cidr: 10.0.0.0/24
81           dhcpEnabled: false
82  
83     vl_flat_net:
84       type: tosca.nodes.nfv.NsVirtualLink
85       properties:
86         connectivity_type:
87           layer_protocol: ipv4
88         version: 1.0.1
89         vl_profile:
90           max_bit_rate_requirements:
91             root: 10000000
92             leaf: 10000000
93           min_bit_rate_requirements:
94             root: 10000000
95             leaf: 10000000
96           networkName: ran_flat_net
97           cidr: 10.1.0.0/24
98           dhcpEnabled: false
99  
100     cu:
101       type: onap.ran.cucp
102       properties:
103         descriptor_id: zte_ran_cu_0001
104         descriptor_version: 1.0
105         provider: ZTE
106         product_name: ran
107         software_version: 1.0.1
108         vnfm_info: [ 'gvnfmdriver' ]
109         flavour_id: 1
110         flavour_description: default
111       requirements:
112         - ran_ext_net: vl_ext_net
113         - ran_flat_net: vl_flat_net
114         
115          
116     du:
117       type: tosca.nodes.nfv.PNF
118       properties:
119         descriptor_id: pnf_test_01
120         provider: ZTE
121         version: 1.0
122         descriptor_invariant_id: 1111
123         name: ZTE RAN DU
124         function_description: RAN DU Function