aboutsummaryrefslogtreecommitdiffstats
path: root/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml
blob: 338f5511bf5660a185ace2aeb797f57ec3b322a8 (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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0

description: Service Template for deploing MME Service

metadata:
  invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7
  UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0
  type: Service
  name: vMME_Service
  description: vMME_Service
  category: Mobility
  serviceEcompNaming: false
  serviceHoming: false

imports:
  vmmeToscaTemplate:
    file: vf_vmme_template_1.yml
    
topology_template:

  inputs:    
    mme_vf_instance_name:
      type: string
      description: VF instance name
    mme_vf_deployment_node:
      type: string
      description: The target LCP node for deployment of this VF instance
    gtp_net_network_name:
      type: string
      description: The GTP network route targets
      default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV
    gtp_net_route_targets:
      type: string
      description: The GTP network route targets
      default: "13979:105715" # HEAT ENV
    gtp_net_cidr:
      type: string
      description: The GTP network cidr
      default: 107.243.37.64/27 # HEAT ENV
    gtp_net_gateway_ip:
      type: string
      description: The GTP network gateway
      default: 107.243.37.65 # HEAT ENV
    gtp_net_start_ip:
      type: string
      description: The GTP network start ip
      default: 107.243.37.67 # HEAT ENV
    gtp_net_end_ip:
      type: string
      description: The GTP network end ip
      default: 107.243.37.94 # HEAT ENV
     # more inputs were removed for brevity 
      
  node_templates:

    mme: # vMME VNF
      type: org.openecomp.resource.vf.vmme

      metadata:
         invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22
          UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc
          version: 1.0
          name: vMME_VF
          description: vMME_VF
          type: VF
          category: Application L4+
          subcategory: Firewall
          resourceVendor: Ericsson

      properties:
        vf_ecomp_name: false
        vf_instance_name: { get_input: vf_instance_name }
        vf_homing: false
        vf_deployment_node: { get_input: vf_deployment_node }

      requirements:
        - vlc1_sctp_a.link:
              capability: tosca.capabilities.network.Bindable
              node: sctp_a_net
              relationship: tosca.relationships.network.BindsTo
        - vlc1_sctp_b.link:
              capability: tosca.capabilities.network.Bindable
              node: sctp_b_net
              relationship: tosca.relationships.network.BindsTo
        - vlc1_gtp_net.link:
              capability: tosca.capabilities.network.Bindable
              node: gtp_net
              relationship: tosca.relationships.network.BindsTo

 
     
  # Virtual Links (Networks)
  
    gtp_net:
      type: org.openecomp.resource.vl.VL
      metadata:
        invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896
        UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3
        version: 1.0
        name: GTPNet
        description: GTP External Network
        type: VL
        category: VL
        resourceVendor: AT&T      
      properties:
        network_type: Tenant_Layer_3 
        network_technology: Contrail
        network_ecomp_name: false
        network_homing: false
        network_deployment_node: { get_input : network_deployment_node }
        contrail_virtual_network:
          network_name: {get_input: gtp_net_network_name}
          route_targets: {get_input: gtp_net_route_targets}
        network_id:
        layer_protocol: IP
        flow_pattern: E-LAN 
        test_access: none
        l3_access_parameters:
          ip_version: 4
          cidr: {get_input: gtp_net_cidr}
          gateway_ip: {get_input: gtp_net_gateway_ip}
          start_ip: {get_input: gtp_net_start_ip}
          end_ip: {get_input: gtp_net_end_ip}
    
    sctp_a_net:
      type: org.openecomp.resource.vl.VL
      metadata:
        invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999
        UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321
        version: 1.0
        name: SCTPANet
        description: SCTP A External Network
        type: VL
        category: VL
        resourceVendor: AT&T
      properties:
        network_type: Tenant_Layer_3
        network_technology: Contrail
        network_ecomp_name: false
        network_homing: false
        network_deployment_node: { get_input : network_deployment_node }
        contrail_virtual_network:
          network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1
          route_targets: 13979:105717
        layer_protocol: IP
        flow_pattern: E-LAN
        test_access: none
        l3_access_parameters:
          ip_version: 4
          cidr: 107.243.37.0/27 # HEAT ENV
          gateway_ip: 107.243.37.1 # HEAT ENV
          start_ip: 107.243.37.3 # HEAT ENV
          end_ip: 107.243.37.30 # HEAT ENV
      
    sctp_b_net:
      type: org.openecomp.resource.vl.VL
      metadata:
        invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6
        UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45
        version: 1.0
        name: SCTPBNet
        description: SCTP B External Network
        type: VL
        category: VL
        resourceVendor: AT&T
      properties:
        network_type: Tenant_Layer_3
        network_technology: Contrail
        network_ecomp_name: false
        network_homing: false
        network_deployment_node: { get_input : network_deployment_node }
        contrail_virtual_network:
          network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1
          route_targets: 13979:105719
        network_id:
        layer_protocol: IP
        flow_pattern: E-LAN
        test_access: none
        l3_access_parameters:
          ip_version: 4
          cidr: 107.243.37.32/24 # HEAT ENV
          gateway_ip: 107.243.37.33 # HEAT ENV
          start_ip: 107.243.37.35 # HEAT ENV
          end_ip: 107.243.37.62 # HEAT ENV
      
  groups:

    external_networks: # vMME_External_Network
      type: org.openecomp.groups.externalNetworks
      properties:
        contrail_service_instance: true # from HEAT
        availability_zone_count: 1 # from HEAT
              
      members: [ sctp_a_net, sctp_b_net, gtp_net ]