blob: d76df349d6823c858b79ef3b4afe3eb18949b728 [file] [log] [blame]
Woojoong Kimaeb14f42017-10-18 09:42:25 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15#}
16
17
18tosca_definitions_version: tosca_simple_yaml_1_0
19
20description: created by platform-install, need to add M-CORD services later
21
22imports:
23 - custom_types/xos.yaml
24 - custom_types/sdncontroller.yaml
25
26topology_template:
27 node_templates:
28
29# site, image, fully created in deployment.yaml
30 {{ site_name }}:
31 type: tosca.nodes.Site
32
33 m1.small:
34 type: tosca.nodes.Flavor
35 m1.large:
36 type: tosca.nodes.Flavor
37 m1.medium:
38 type: tosca.nodes.Flavor
39 m1.xlarge:
40 type: tosca.nodes.Flavor
41
42 trusty-server-multi-nic:
43 type: tosca.nodes.Image
44
45# management networks, fully created in management-net.yaml
46 management:
47 type: tosca.nodes.network.Network.XOS
48 properties:
49 no-create: true
50 no-delete: true
51 no-update: true
52
53{% if use_management_hosts %}
54 management_hosts:
55 type: tosca.nodes.network.Network.XOS
56 properties:
57 no-create: true
58 no-delete: true
59 no-update: true
60{% endif %}
61
62# sbi_network
63 sbi_network:
64 type: tosca.nodes.network.Network.XOS
65 properties:
66 no-create: true
67 no-delete: true
68 no-update: true
69
70# nbi_network
71 nbi_network:
72 type: tosca.nodes.network.Network.XOS
73 properties:
74 no-create: true
75 no-delete: true
76 no-update: true
77
78
79# CORD Services
80 service#sdncontroller:
81 type: tosca.nodes.SDNControllerService
82 properties:
83 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
84 private_key_fn: /opt/xos/services/sdncontroller/keys/mcord_rsa
85 artifacts:
86 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
87
88# CORD Slices
89 {{ site_name }}_sdncontroller:
90 description: SDN controller slice
91 type: tosca.nodes.Slice
92 properties:
93 network: noauto
94 requirements:
95 - site:
96 node: mysite
97 relationship: tosca.relationships.MemberOfSite
98 - sdncontroller_service:
99 node: service#sdncontroller
100 relationship: tosca.relationships.MemberOfService
101 - default_image:
102 node: trusty-server-multi-nic
103 relationship: tosca.relationships.DefaultImage
104 - default_flavor:
105 node: m1.small
106 relationship: tosca.relationships.DefaultFlavor
107 - connection_to_management:
108 node: management
109 relationship: tosca.relationships.ConnectsToNetwork
110 - connection_to_sbi_network:
111 node: sbi_network
112 relationship: tosca.relationships.ConnectsToNetwork
113 - connection_to_nbi_network:
114 node: nbi_network
115 relationship: tosca.relationships.ConnectsToNetwork