aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/ContrailV2_translation/ContrailV2_Multi_net_single_policy_translation/inputfiles/main.yml
blob: ceb55edea252105e901357fdf2c5f2ca3b0adc02 (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
195
196
197
198
199
200
201
202
203
description: "cmaui server template for vMMSC"
heat_template_version: 2013-05-23
parameters: 
  Internal1_cidr:
    type: string
  Internal2_cidr:
    type: string
  Internal1_default_gateway:
    type: string
  Internal2_default_gateway:
    type: string
  Internal1_dhcp:
      type: string
  Internal2_dhcp:
    type: string
  direction:
    description: dummy
    type: string
  dst_port_end: 
    description: dummy
    type: string
  dst_port_start: 
    description: dummy
    type: string
  left_vn: 
    description: dummy
    type: string
  left_vn_fqdn: 
    description: dummy
    type: string
  network_ipam_refs_data_ipam_subnets_addr_from_start_true: 
    description: dummy
    type: string
  network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2: 
    description: dummy
    type: string
  network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2: 
    description: dummy
    type: string
  policy_name: 
    description: dummy
    type: string
  protocol: 
    description: dummy
    type: string
  right_vn_fqdn: 
    description: dummy
    type: string
  simple_action: 
    description: dummy
    type: string
  src_port_end: 
    description: dummy
    type: string
  src_port_start: 
    description: dummy
    type: string
  service_instance_fq_name:
    type: string
resources: 
  template_NetworkIpam_2: 
    properties: 
      name: 
        get_param: left_vn
    type: "OS::ContrailV2::NetworkIpam"
  template_NetworkPolicy: 
    properties: 
      name: 
        get_param: policy_name
      network_policy_entries: 
        network_policy_entries_policy_rule: 
          - 
            network_policy_entries_policy_rule_action_list: 
              network_policy_entries_policy_rule_action_list_apply_service: 
                - 
                  get_param: service_instance_fq_name
              network_policy_entries_policy_rule_action_list_simple_action: 
                get_param: simple_action
            network_policy_entries_policy_rule_direction: 
              get_param: direction
            network_policy_entries_policy_rule_dst_addresses: 
              - 
                network_policy_entries_policy_rule_dst_addresses_virtual_network: 
                  get_param: right_vn_fqdn
            network_policy_entries_policy_rule_dst_ports: 
              - 
                network_policy_entries_policy_rule_dst_ports_end_port: 
                  get_param: dst_port_end
                network_policy_entries_policy_rule_dst_ports_start_port: 
                  get_param: dst_port_start
            network_policy_entries_policy_rule_protocol: 
              get_param: protocol
            network_policy_entries_policy_rule_src_addresses: 
              - 
                network_policy_entries_policy_rule_src_addresses_virtual_network: 
                  get_param: left_vn_fqdn
            network_policy_entries_policy_rule_src_ports: 
              - 
                network_policy_entries_policy_rule_src_ports_end_port: 
                  get_param: src_port_end
                network_policy_entries_policy_rule_src_ports_start_port: 
                  get_param: src_port_start
    type: "OS::ContrailV2::NetworkPolicy"
  template_VirtualNetwork_1:
    depends_on:
      - template_NetworkIpam_2
      - template_NetworkPolicy
    properties:
      name:
        get_param: left_vn
      network_ipam_refs:
        -
          get_resource: template_NetworkIpam_2
      network_ipam_refs_data:
        -
          network_ipam_refs_data_ipam_subnets:
            -
              network_ipam_refs_data_ipam_subnets_addr_from_start:
                get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
              network_ipam_refs_data_ipam_subnets_subnet:
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
      network_policy_refs: [ { list_join: [':', { get_attr: [ template_NetworkPolicy, fq_name ] } ] } ]
      network_policy_refs_data:
        -
          network_policy_refs_data_sequence:
            network_policy_refs_data_sequence_major: 0
            network_policy_refs_data_sequence_minor: 0
    type: "OS::ContrailV2::VirtualNetwork"
  template_VirtualNetwork_2:
    depends_on:
      - template_NetworkIpam_2
      - template_NetworkPolicy
    properties:
      name:
        get_param: left_vn
      network_ipam_refs:
        -
          get_resource: template_NetworkIpam_2
      network_ipam_refs_data:
        -
          network_ipam_refs_data_ipam_subnets:
            -
              network_ipam_refs_data_ipam_subnets_addr_from_start:
                get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
              network_ipam_refs_data_ipam_subnets_subnet:
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
      network_policy_refs: [  { get_attr: [ template_NetworkPolicy, fq_name ] } ]
      network_policy_refs_data:
        -
          network_policy_refs_data_sequence:
            network_policy_refs_data_sequence_major: 0
            network_policy_refs_data_sequence_minor: 0
    type: "OS::ContrailV2::VirtualNetwork"
  template_VirtualNetwork_3:
    depends_on:
      - template_NetworkIpam_2
      - template_NetworkPolicy
    properties:
      name:
        get_param: left_vn
      network_ipam_refs:
        -
          get_resource: template_NetworkIpam_2
      network_ipam_refs_data:
        -
          network_ipam_refs_data_ipam_subnets:
            -
              network_ipam_refs_data_ipam_subnets_addr_from_start:
                get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
              network_ipam_refs_data_ipam_subnets_subnet:
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                  get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
      network_policy_refs: [  { get_resource: template_NetworkPolicy } ]
      network_policy_refs_data:
        -
          network_policy_refs_data_sequence:
            network_policy_refs_data_sequence_major: 0
            network_policy_refs_data_sequence_minor: 0
    type: "OS::ContrailV2::VirtualNetwork"

  Internal-subnet-1:
      type: OS::Neutron::Subnet
      properties:
        network_id: { get_resource: template_VirtualNetwork_2 }
        cidr: { get_param: Internal1_cidr }
        gateway_ip: { get_param: Internal1_default_gateway }
        enable_dhcp: { get_param: Internal1_dhcp }

  Internal-subnet-2:
      type: OS::Neutron::Subnet
      properties:
        network_id: { get_resource: template_VirtualNetwork_2 }
        cidr: { get_param: Internal2_cidr }
        gateway_ip: { get_param: Internal2_default_gateway }
        enable_dhcp: { get_param: Internal2_dhcp }