ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame^] | 1 | heat_template_version: 2013-05-23 |
| 2 | |
| 3 | description: > |
| 4 | BASE TEMPLATE |
| 5 | |
| 6 | parameters: |
| 7 | vnf_name: |
| 8 | type: string |
| 9 | description: Unique name for this VF instance |
| 10 | |
| 11 | vnf_id: |
| 12 | type: string |
| 13 | description: Unique ID for this VF instance |
| 14 | |
| 15 | network_in_cidr: |
| 16 | type: string |
| 17 | description: IN network address (CIDR notation) |
| 18 | |
| 19 | network_out_cidr: |
| 20 | type: string |
| 21 | description: MUX out network address (CIDR notation) |
| 22 | |
| 23 | network_in_gw_ip: |
| 24 | type: string |
| 25 | description: IN network gw address |
| 26 | |
| 27 | network_out_gw_ip: |
| 28 | type: string |
| 29 | description: MUX out network gw address |
| 30 | |
| 31 | resources: |
| 32 | |
| 33 | random-str: |
| 34 | type: OS::Heat::RandomString |
| 35 | properties: |
| 36 | length: 4 |
| 37 | |
| 38 | CB_IN_Net: |
| 39 | type: OS::Neutron::Net |
| 40 | properties: |
| 41 | name: |
| 42 | str_replace: |
| 43 | template: CB_IN_Net_rand |
| 44 | params: |
| 45 | rand: { get_resource: random-str } |
| 46 | |
| 47 | CB_IN_Subnet: |
| 48 | type: OS::Neutron::Subnet |
| 49 | properties: |
| 50 | name: |
| 51 | str_replace: |
| 52 | template: CB_IN_Net_rand |
| 53 | params: |
| 54 | rand: { get_resource: random-str } |
| 55 | network_id: { get_resource: CB_IN_Net } |
| 56 | cidr: { get_param: network_in_cidr } |
| 57 | gateway_ip: { get_param: network_in_gw_ip } |
| 58 | |
| 59 | CB_OUT_Net: |
| 60 | type: OS::Neutron::Net |
| 61 | properties: |
| 62 | name: |
| 63 | str_replace: |
| 64 | template: CB_OUT_Net_rand |
| 65 | params: |
| 66 | rand: { get_resource: random-str } |
| 67 | |
| 68 | CB_OUT_Subnet: |
| 69 | type: OS::Neutron::Subnet |
| 70 | properties: |
| 71 | network_id: { get_resource: CB_OUT_Net } |
| 72 | cidr: { get_param: network_out_cidr } |
| 73 | gateway_ip: { get_param: network_out_gw_ip } |
| 74 | |
| 75 | outputs: |
| 76 | |
| 77 | CB_IN_Net: |
| 78 | description: ID of the customer facing network |
| 79 | value: { get_resource: CB_IN_Net } |
| 80 | |
| 81 | CB_IN_Subnet: |
| 82 | description: ID of the customer facing subnet |
| 83 | value: { get_resource: CB_IN_Subnet } |
| 84 | |
| 85 | CB_OUT_Net: |
| 86 | description: ID of the Internet Facing network |
| 87 | value: { get_resource: CB_OUT_Net } |
| 88 | |
| 89 | CB_OUT_Subnet: |
| 90 | description: ID of the Internet Facing subnet |
| 91 | value: { get_resource: CB_OUT_Subnet } |