blob: 39f03bd423e75ec371216cfc18d4760d8e486656 [file] [log] [blame]
Andy Bavierc30bd772016-02-17 14:14:11 -05001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Just enough Tosca to get the vSG slice running on the CORD POD
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10 # CORD Services
Scott Baker3e253252016-03-07 20:32:29 -080011 service_vtr:
12 type: tosca.nodes.Service
13 properties:
14 view_url: /admin/vtr/vtrservice/$id$/
15 kind: vTR
16
Andy Bavierc30bd772016-02-17 14:14:11 -050017 service_volt:
18 type: tosca.nodes.Service
19 requirements:
20 - vsg_tenant:
21 node: service_vsg
22 relationship: tosca.relationships.TenantOfService
23 properties:
24 view_url: /admin/cord/voltservice/$id$/
25 kind: vOLT
26
Scott Baker56fe1e82016-04-13 09:12:19 -070027 addresses_vsg:
Andy Bavierc30bd772016-02-17 14:14:11 -050028 type: tosca.nodes.AddressPool
29 properties:
Andy Bavier671403b2016-03-02 14:22:10 -050030 addresses: 10.168.0.0/24
Scott Baker56fe1e82016-04-13 09:12:19 -070031 gateway_ip: 10.168.0.1
32 gateway_mac: 02:42:0a:a8:00:01
33
Scott Baker5d268e52016-04-13 16:56:39 -070034 addresses_exampleservice-public:
Scott Baker56fe1e82016-04-13 09:12:19 -070035 type: tosca.nodes.AddressPool
36 properties:
37 addresses: 10.168.1.0/24
38 gateway_ip: 10.168.1.1
39 gateway_mac: 02:42:0a:a8:00:01
Andy Bavierc30bd772016-02-17 14:14:11 -050040
41 service_vsg:
42 type: tosca.nodes.VSGService
43 requirements:
Scott Bakerdf6375e2016-04-13 11:25:52 -070044 - vrouter_tenant:
45 node: service_vrouter
Andy Bavierc30bd772016-02-17 14:14:11 -050046 relationship: tosca.relationships.TenantOfService
47 properties:
48 view_url: /admin/cord/vsgservice/$id$/
49 backend_network_label: hpc_client
50 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
51 private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key
Scott Baker29b284a2016-03-04 12:10:13 -080052# node_label: label_vsg
Andy Bavierc30bd772016-02-17 14:14:11 -050053 artifacts:
54 pubkey: /opt/xos/synchronizers/vcpe/vcpe_public_key
55
Scott Baker56fe1e82016-04-13 09:12:19 -070056 service_vrouter:
57 type: tosca.nodes.VRouterService
Andy Bavierc30bd772016-02-17 14:14:11 -050058 properties:
Scott Baker92a65b52016-04-14 16:06:23 -070059 view_url: /admin/vrouter/vrouterservice/$id$/
Scott Baker56fe1e82016-04-13 09:12:19 -070060 requirements:
Scott Bakerdf6375e2016-04-13 11:25:52 -070061 - addresses_vsg:
Scott Baker56fe1e82016-04-13 09:12:19 -070062 node: addresses_vsg
63 relationship: tosca.relationships.ProvidesAddresses
Scott Bakerdf6375e2016-04-13 11:25:52 -070064 - addresses_service1:
Scott Baker5d268e52016-04-13 16:56:39 -070065 node: addresses_exampleservice-public
Scott Baker56fe1e82016-04-13 09:12:19 -070066 relationship: tosca.relationships.ProvidesAddresses
Andy Bavierc30bd772016-02-17 14:14:11 -050067
Andy Bavierb1df2dc2016-04-21 14:17:01 -040068 service_ONOS_CORD:
69 type: tosca.nodes.ONOSService
70
Andy Bavierdb8681f2016-04-21 12:54:15 -040071 vOLT_ONOS_app:
72 type: tosca.nodes.ONOSvOLTApp
73 requirements:
74 - onos_tenant:
75 node: service_ONOS_CORD
76 relationship: tosca.relationships.TenantOfService
77 - volt_service:
78 node: service_volt
79 relationship: tosca.relationships.UsedByService
80 properties:
81 install_dependencies: onos-ext-notifier-1.0-SNAPSHOT.oar, onos-ext-volt-event-publisher-1.0-SNAPSHOT.oar
82 dependencies: org.onosproject.openflow-base, org.onosproject.olt, org.ciena.onos.ext_notifier, org.ciena.onos.volt_event_publisher
Andy Bavier001c6352016-04-27 15:57:14 -040083 autogenerate: volt-network-cfg
84 autogenerate: volt-component-cfg
Andy Bavierdb8681f2016-04-21 12:54:15 -040085
Andy Bavierc30bd772016-02-17 14:14:11 -050086 Private:
87 type: tosca.nodes.NetworkTemplate
88
89 management:
90 type: tosca.nodes.network.Network.XOS
91 properties:
92 no-create: true
93 no-delete: true
94 no-update: true
95
96 mysite:
97 type: tosca.nodes.Site
98
Scott Baker58dd7c92016-03-04 10:44:41 -080099 label_vsg:
100 type: tosca.nodes.NodeLabel
101
Andy Bavierc30bd772016-02-17 14:14:11 -0500102 # Networks required by the CORD setup
103 mysite_vsg-access:
104 type: tosca.nodes.network.Network
105 properties:
106 ip_version: 4
107 requirements:
108 - network_template:
109 node: Private
110 relationship: tosca.relationships.UsesNetworkTemplate
111 - owner:
112 node: mysite_vsg
113 relationship: tosca.relationships.MemberOfSlice
114 - connection:
115 node: mysite_vsg
116 relationship: tosca.relationships.ConnectsToSlice
117
118 # CORD Slices
119 mysite_vsg:
120 description: vSG Controller Slice
121 type: tosca.nodes.Slice
122 properties:
123 network: noauto
124 requirements:
125 - vsg_service:
126 node: service_vsg
127 relationship: tosca.relationships.MemberOfService
128 - site:
129 node: mysite
130 relationship: tosca.relationships.MemberOfSite
131 - management:
132 node: management
133 relationship: tosca.relationships.ConnectsToNetwork
134
135 # Let's add a user who can be administrator of the household
136 johndoe@myhouse.com:
137 type: tosca.nodes.User
138 properties:
139 password: letmein
140 firstname: john
141 lastname: doe
142 requirements:
143 - site:
144 node: mysite
145 relationship: tosca.relationships.MemberOfSite
146
147 # A subscriber
148 My House:
149 type: tosca.nodes.CORDSubscriber
150 properties:
151 service_specific_id: 123
152 firewall_enable: false
153 cdn_enable: false
154 url_filter_enable: false
155 url_filter_level: R
156 requirements:
157 - house_admin:
158 node: johndoe@myhouse.com
159 relationship: tosca.relationships.AdminPrivilege
160
161 Mom's PC:
162 type: tosca.nodes.CORDUser
163 properties:
164 mac: 01:02:03:04:05:06
165 level: PG_13
166 requirements:
167 - household:
168 node: My House
169 relationship: tosca.relationships.SubscriberDevice
170
171 Dad's PC:
172 type: tosca.nodes.CORDUser
173 properties:
174 mac: 90:E2:BA:82:F9:75
175 level: PG_13
176 requirements:
177 - household:
178 node: My House
179 relationship: tosca.relationships.SubscriberDevice
180
181 Jack's Laptop:
182 type: tosca.nodes.CORDUser
183 properties:
184 mac: 68:5B:35:9D:91:D5
185 level: PG_13
186 requirements:
187 - household:
188 node: My House
189 relationship: tosca.relationships.SubscriberDevice
190
191 Jill's Laptop:
192 type: tosca.nodes.CORDUser
193 properties:
194 mac: 34:36:3B:C9:B6:A6
195 level: PG_13
196 requirements:
197 - household:
198 node: My House
199 relationship: tosca.relationships.SubscriberDevice
200
Andy Bavierb1df2dc2016-04-21 14:17:01 -0400201# My Volt:
202# type: tosca.nodes.VOLTTenant
203# properties:
204# service_specific_id: 123
205# s_tag: 222
206# c_tag: 111
207# requirements:
208# - provider_service:
209# node: service_volt
210# relationship: tosca.relationships.MemberOfService
211# - subscriber:
212# node: My House
213# relationship: tosca.relationships.BelongsToSubscriber