blob: 96332dc38eacedeb94c4cb383c09da0274468796 [file] [log] [blame]
Andy Bavier2dc220c2017-10-12 15:10:30 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/internetemulator.yaml
26
27topology_template:
28 node_templates:
29
30# site, image, fully created in deployment.yaml
31 {{ site_name }}:
32 type: tosca.nodes.Site
33
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:
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
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
95
96# CORD Services
97 service#internetemulator:
98 type: tosca.nodes.InternetEmulatorService
99 properties:
100 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
101 private_key_fn: /opt/xos/services/internetemulator/keys/mcord_rsa
102 artifacts:
103 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
104
105# CORD Slices
106 mysite_internetemulator:
107 description: Internet Emulator Slice
108 type: tosca.nodes.Slice
109 properties:
110 network: noauto
111 requirements:
112 - site:
113 node: mysite
114 relationship: tosca.relationships.MemberOfSite
115 - internetemulator_service:
116 node: service#internetemulator
117 relationship: tosca.relationships.MemberOfService
118 - default_image:
119 node: trusty-server-multi-nic
120 relationship: tosca.relationships.DefaultImage
121 - default_flavor:
122 node: m1.small
123 relationship: tosca.relationships.DefaultFlavor
124 - connection_to_management:
125 node: management
126 relationship: tosca.relationships.ConnectsToNetwork