Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: created by platform-install, need to add M-CORD services later |
| 22 | |
| 23 | imports: |
| 24 | - custom_types/xos.yaml |
Pingping Lin | e13939c | 2017-10-05 20:23:40 -0700 | [diff] [blame^] | 25 | - custom_types/vmme.yaml |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 26 | |
| 27 | topology_template: |
| 28 | node_templates: |
| 29 | |
| 30 | # site, image, fully created in deployment.yaml |
| 31 | {{ site_name }}: |
| 32 | type: tosca.nodes.Site |
| 33 | |
Pingping Lin | e13939c | 2017-10-05 20:23:40 -0700 | [diff] [blame^] | 34 | m1.small: |
| 35 | type: tosca.nodes.Flavor |
| 36 | m1.large: |
| 37 | type: tosca.nodes.Flavor |
| 38 | m1.medium: |
| 39 | type: tosca.nodes.Flavor |
| 40 | m1.xlarge: |
| 41 | type: tosca.nodes.Flavor |
| 42 | |
| 43 | trusty-server-multi-nic: |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 44 | type: tosca.nodes.Image |
| 45 | |
| 46 | # management networks, fully created in management-net.yaml |
| 47 | management: |
| 48 | type: tosca.nodes.network.Network.XOS |
| 49 | properties: |
| 50 | no-create: true |
| 51 | no-delete: true |
| 52 | no-update: true |
| 53 | |
| 54 | {% if use_management_hosts %} |
| 55 | management_hosts: |
| 56 | type: tosca.nodes.network.Network.XOS |
| 57 | properties: |
| 58 | no-create: true |
| 59 | no-delete: true |
| 60 | no-update: true |
| 61 | {% endif %} |
| 62 | |
Pingping Lin | e13939c | 2017-10-05 20:23:40 -0700 | [diff] [blame^] | 63 | # shared_network is for connectivity between VMs, fully created in shared-net.yaml |
| 64 | shared_network: |
| 65 | type: tosca.nodes.network.Network.XOS |
| 66 | properties: |
| 67 | no-create: true |
| 68 | no-delete: true |
| 69 | no-update: true |
| 70 | |
| 71 | # wan_network for vPGWU and its upstream connectivity, fully created in wan-net.yaml |
| 72 | wan_network: |
| 73 | type: tosca.nodes.network.Network.XOS |
| 74 | properties: |
| 75 | no-create: true |
| 76 | no-delete: true |
| 77 | no-update: true |
| 78 | |
| 79 | # VLAN networks for RRH and vBBU, fully created in vsg-net.yaml |
| 80 | vsg_network: |
| 81 | type: tosca.nodes.network.Network.XOS |
| 82 | properties: |
| 83 | no-create: true |
| 84 | no-delete: true |
| 85 | no-update: true |
| 86 | |
| 87 | # flat network for vMME, vSGWC, vSGWU, to connect to RRU, fully created in flat-net.yaml |
| 88 | flat_network: |
| 89 | type: tosca.nodes.network.Network.XOS |
| 90 | properties: |
| 91 | no-create: true |
| 92 | no-delete: true |
| 93 | no-update: true |
| 94 | |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 95 | # ONOS_CORD, fully created in vtn.yaml |
| 96 | service#ONOS_CORD: |
| 97 | type: tosca.nodes.ONOSService |
| 98 | properties: |
| 99 | no-delete: true |
| 100 | no-create: true |
| 101 | no-update: true |
| 102 | |
| 103 | # ONOS_Fabric, fully created in fabric.yaml |
| 104 | service#ONOS_Fabric: |
| 105 | type: tosca.nodes.ONOSService |
| 106 | properties: |
| 107 | no-delete: true |
| 108 | no-create: true |
| 109 | no-update: true |
| 110 | |
Pingping Lin | e13939c | 2017-10-05 20:23:40 -0700 | [diff] [blame^] | 111 | # CORD Services |
| 112 | service#vmme: |
| 113 | type: tosca.nodes.VMMEService |
| 114 | properties: |
| 115 | kind: vEPC |
| 116 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 117 | private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa |
| 118 | artifacts: |
| 119 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 120 | |
| 121 | # CORD Slices |
| 122 | mysite_vMME_slice: |
| 123 | description: vMME Service Slice |
| 124 | type: tosca.nodes.Slice |
| 125 | properties: |
| 126 | network: noauto |
| 127 | requirements: |
| 128 | - site: |
| 129 | node: mysite |
| 130 | relationship: tosca.relationships.MemberOfSite |
| 131 | - vmme_service: |
| 132 | node: service#vmme |
| 133 | relationship: tosca.relationships.MemberOfService |
| 134 | - default_image: |
| 135 | node: trusty-server-multi-nic |
| 136 | relationship: tosca.relationships.DefaultImage |
| 137 | - default_flavor: |
| 138 | node: m1.small |
| 139 | relationship: tosca.relationships.DefaultFlavor |
| 140 | - connection_to_management: |
| 141 | node: management |
| 142 | relationship: tosca.relationships.ConnectsToNetwork |
| 143 | - connection_to_shared_network: |
| 144 | node: shared_network |
| 145 | relationship: tosca.relationships.ConnectsToNetwork |
| 146 | - connection_to_flat_network: |
| 147 | node: flat_network |
| 148 | relationship: tosca.relationships.ConnectsToNetwork |