blob: 406c83e019cfe314ba01ee9155cd3c14e610cfaf [file] [log] [blame]
Pingping Linea12ea72016-04-01 01:53:19 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9 tosca.nodes.MCORDComponent:
10 derived_from: tosca.nodes.Root
11 description: >
12 CORD: A Service Component of MCORD Service.
13 properties:
14 kind:
15 type: string
16 default: generic
17 description: Kind of component
18 s_tag:
19 type: string
20 required: false
21 default: 200
22 description: VTN stag port-name
23 display_message:
24 type: string
25 required: false
26 default: MCORD Component ready
27 description: Component message
28
29topology_template:
30 node_templates:
31
32 Stanford_Deployment:
33 type: tosca.nodes.Deployment
34
35 computeBBU1:
36 type: tosca.nodes.Node
37 requirements:
38 - site:
39 node: Stanford_University
40 relationship: tosca.relationships.MemberOfSite
41 - deployment:
42 node: Stanford_Deployment
43 relationship: tosca.relationships.MemberOfDeployment
44
45 Topology:
46 type: tosca.nodes.DashboardView
47 properties:
48 url: template:xosMcordTopology
49
50 padmin@vicci.org:
51 type: tosca.nodes.User
52 properties:
53 firstname: XOS
54 lastname: admin
55 is_admin: true
56 requirements:
57 - mcord_dashboard:
58 node: Topology
59 relationship: tosca.relationships.UsesDashboard
60
61 # SERIVCES
62 vBBU:
63 type: tosca.nodes.Service
64 requirements:
65 properties:
66 view_url: /admin/mcordservice/
67 kind: RAN
68
69 # Network Templates
70 Private:
71 type: tosca.nodes.NetworkTemplate
72
73 management_template:
74 type: tosca.nodes.NetworkTemplate
75 properties:
76 visibility: private
77 translation: none
78
79 # Network
80 Stanford_University_vBBU_network:
81 type: tosca.nodes.network.Network.XOS
82 properties:
83 ip_version: 4
84 labels: mcord_service_internal_net
85 cidr: 172.16.16.0/24
86 start_ip: 172.16.16.2
87 end_ip: 172.16.16.5
88 gateway_ip: 172.16.16.1
89 requirements:
90 - network_template:
91 node: Private
92 relationship: tosca.relationships.UsesNetworkTemplate
93 - owner:
94 node: Stanford_University_vBBU_slice
95 relationship: tosca.relationships.MemberOfSlice
96 - connection:
97 node: Stanford_University_vBBU_slice
98 relationship: tosca.relationships.ConnectsToSlice
99
100 management:
101 type: tosca.nodes.network.Network
102 properties:
103 ip_version: 4
104 cidr: 10.102.90.0/24
105 requirements:
106 - network_template:
107 node: management_template
108 relationship: tosca.relationships.UsesNetworkTemplate
109 - owner:
110# node: Stanford_University_vBBU_slice
111 node: Stanford_University_management
112 relationship: tosca.relationships.MemberOfSlice
113# - connection:
114# node: Stanford_University_vBBU_slice
115# relationship: tosca.relationships.ConnectsToSlice
116
117
118 Stanford_University:
119 type: tosca.nodes.Site
120
121 ubuntu-14.04-server-cloudimg-amd64-disk1:
122 type: tosca.nodes.Image
123
124 Stanford_University_management:
125 description: This slice exists solely to own the management network
126 type: tosca.nodes.Slice
127 properties:
128 network: noauto
129 requirements:
130 - site:
131 node: Stanford_University
132 relationship: tosca.relationships.MemberOfSite
133
134 Stanford_University_vBBU_slice:
135 description: vBBU Service Slice
136 type: tosca.nodes.Slice
137# properties:
138# network: noauto
139 requirements:
140 - mcord_service:
141 node: vBBU
142 relationship: tosca.relationships.MemberOfService
143 - site:
144 node: Stanford_University
145 relationship: tosca.relationships.MemberOfSite
146 - default_image:
147 node: ubuntu-14.04-server-cloudimg-amd64-disk1
148 relationship: tosca.relationships.DefaultImage
149 properties:
150 default_flavor: m1.medium
151 default_node: computeBBU2
152
153 Stanford_University_vBBU_component:
154 description: vBBU Service Component
155 type: tosca.nodes.MCORDComponent
156 requirements:
157 - provider_service:
158 node: vBBU
159 relationship: tosca.relationships.MemberOfService
160 - Stanford_University_vBBU_slice:
161 node: Stanford_University_vBBU_slice
162 relationship: tosca.relationships.MemberOfSlice