JianHao | c21f650 | 2017-10-20 21:52:53 +0800 | [diff] [blame] | 1 | {# |
| 2 | Copyright 2017-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | #} |
| 16 | |
| 17 | |
| 18 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 19 | |
| 20 | description: created by platform-install, need to add M-CORD services later |
| 21 | |
| 22 | imports: |
| 23 | - custom_types/xos.yaml |
| 24 | - custom_types/slice.yaml |
| 25 | - custom_types/site.yaml |
| 26 | - custom_types/image.yaml |
| 27 | - custom_types/flavor.yaml |
| 28 | - custom_types/network.yaml |
| 29 | - custom_types/networkslice.yaml |
| 30 | - custom_types/vspgwcservice.yaml |
| 31 | - custom_types/vspgwcvendor.yaml |
| 32 | - custom_types/vspgwctenant.yaml |
| 33 | |
| 34 | topology_template: |
| 35 | node_templates: |
| 36 | |
| 37 | # site, image, fully created in deployment.yaml |
| 38 | {{ site_name }}: |
| 39 | type: tosca.nodes.Site |
| 40 | properties: |
| 41 | must-exist: true |
| 42 | name: {{ site_name }} |
| 43 | |
| 44 | m1.small: |
| 45 | type: tosca.nodes.Flavor |
| 46 | properties: |
| 47 | name: m1.small |
| 48 | must-exist: true |
| 49 | |
| 50 | trusty-server-multi-nic: |
| 51 | type: tosca.nodes.Image |
| 52 | properties: |
| 53 | name: trusty-server-multi-nic |
| 54 | must-exist: true |
| 55 | |
| 56 | # management networks, fully created in management-net.yaml |
| 57 | management: |
| 58 | type: tosca.nodes.Network |
| 59 | properties: |
| 60 | must-exist: true |
| 61 | name: management |
| 62 | |
| 63 | {% if use_management_hosts %} |
| 64 | management_hosts: |
| 65 | type: tosca.nodes.Network |
| 66 | properties: |
| 67 | must-exist: true |
| 68 | name: management_hosts |
| 69 | {% endif %} |
| 70 | |
| 71 | # s11_network is for connectivity between VMs, fully created in s11-net.yaml |
| 72 | s11_network: |
| 73 | type: tosca.nodes.Network |
| 74 | properties: |
| 75 | must-exist: true |
| 76 | name: s11_network |
| 77 | |
| 78 | # nbi_network is for connectivity between VMs, fully created in nbi-net.yaml |
| 79 | nbi_network: |
| 80 | type: tosca.nodes.Network |
| 81 | properties: |
| 82 | must-exist: true |
| 83 | name: nbi_network |
| 84 | |
| 85 | |
| 86 | # CORD Services |
| 87 | service#vspgwc: |
| 88 | type: tosca.nodes.VSPGWCService |
| 89 | properties: |
| 90 | name: vspgwc |
| 91 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 92 | private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa |
| 93 | artifacts: |
| 94 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 95 | |
| 96 | # CORD Slices |
| 97 | {{ site_name }}_vspgwc: |
| 98 | description: SDN controller slice |
| 99 | type: tosca.nodes.Slice |
| 100 | properties: |
| 101 | name: {{ site_name }}_vspgwc |
| 102 | default_isolation: vm |
| 103 | network: noauto |
| 104 | requirements: |
| 105 | - site: |
| 106 | node: mysite |
| 107 | relationship: tosca.relationships.BelongsToOne |
| 108 | - service: |
| 109 | node: service#vspgwc |
| 110 | relationship: tosca.relationships.BelongsToOne |
| 111 | - default_image: |
| 112 | node: trusty-server-multi-nic |
| 113 | relationship: tosca.relationships.BelongsToOne |
| 114 | - default_flavor: |
| 115 | node: m1.small |
| 116 | relationship: tosca.relationships.BelongsToOne |
| 117 | |
| 118 | # CORD Service Instances |
| 119 | |
| 120 | intel_vspgwc: |
| 121 | type: tosca.nodes.VSPGWCVendor |
| 122 | properties: |
| 123 | name: intel_vspgwc |
| 124 | requirements: |
| 125 | - image: |
| 126 | node: trusty-server-multi-nic |
| 127 | relationship: tosca.relationships.BelongsToOne |
| 128 | - flavor: |
| 129 | node: m1.small |
| 130 | relationship: tosca.relationships.BelongsToOne |
| 131 | |
| 132 | serviceinstance#vspgwc_instance: |
| 133 | type: tosca.nodes.VSPGWCTenant |
| 134 | properties: |
| 135 | name: vspgwc_instance1 |
| 136 | requirements: |
| 137 | - vspgwc_vendor: |
| 138 | node: intel_vspgwc |
| 139 | relationship: tosca.relationships.BelongsToOne |
| 140 | - owner: |
| 141 | node: service#vspgwc |
| 142 | relationship: tosca.relationships.BelongsToOne |
| 143 | |
| 144 | # CORD NetworkSlices |
| 145 | vspgwc_slice_management_network: |
| 146 | type: tosca.nodes.NetworkSlice |
| 147 | requirements: |
| 148 | - network: |
| 149 | node: management |
| 150 | relationship: tosca.relationships.BelongsToOne |
| 151 | - slice: |
| 152 | node: {{ site_name }}_vspgwc |
| 153 | relationship: tosca.relationships.BelongsToOne |
| 154 | |
| 155 | vspgwc_slice_s11_network: |
| 156 | type: tosca.nodes.NetworkSlice |
| 157 | requirements: |
| 158 | - network: |
| 159 | node: s11_network |
| 160 | relationship: tosca.relationships.BelongsToOne |
| 161 | - slice: |
| 162 | node: {{ site_name }}_vspgwc |
| 163 | relationship: tosca.relationships.BelongsToOne |
| 164 | |
| 165 | vspgwc_slice_nbi_network: |
| 166 | type: tosca.nodes.NetworkSlice |
| 167 | requirements: |
| 168 | - network: |
| 169 | node: nbi_network |
| 170 | relationship: tosca.relationships.BelongsToOne |
| 171 | - slice: |
| 172 | node: {{ site_name }}_vspgwc |
| 173 | relationship: tosca.relationships.BelongsToOne |