blob: 557f98e8108cb9b18da6c84bfaa8c861813c186c [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup two subscriber with related service chain, use for development of serviceTopology view.
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10 # CORD Subscribers
11 Night's Watch:
12 type: tosca.nodes.CORDSubscriber
13 properties:
14 service_specific_id: 123
15 firewall_enable: false
16 cdn_enable: false
17 url_filter_enable: false
18 url_filter_level: R
19
20 # CORD Users for Night's Watch
21 Jhon Snow:
22 type: tosca.nodes.CORDUser
23 properties:
24 mac: 01:02:03:04:05:06
25 level: PG_13
26 requirements:
27 - household:
28 node: Night's Watch
29 relationship: tosca.relationships.SubscriberDevice
30
31 House Targaryen:
32 type: tosca.nodes.CORDSubscriber
33 properties:
34 service_specific_id: 321
35 firewall_enable: false
36 cdn_enable: false
37 url_filter_enable: false
38 url_filter_level: R
39
40 # CORD Users for House Targaryen
41 Daenerys:
42 type: tosca.nodes.CORDUser
43 properties:
44 mac: 06:05:04:03:02:01
45 level: PG_13
46 requirements:
47 - household:
48 node: House Targaryen
49 relationship: tosca.relationships.SubscriberDevice
50
51 # vOLT Tenants
52 Night's Watch vOLT:
53 type: tosca.nodes.VOLTTenant
54 properties:
55 service_specific_id: 123
56 s_tag: 123
57 c_tag: 456
58 requirements:
59 - provider_service:
60 node: service_volt
61 relationship: tosca.relationships.MemberOfService
62 - subscriber:
63 node: Night's Watch
64 relationship: tosca.relationships.BelongsToSubscriber
65
66 Targaryen vOLT:
67 type: tosca.nodes.VOLTTenant
68 properties:
69 service_specific_id: 321
70 s_tag: 321
71 c_tag: 654
72 requirements:
73 - provider_service:
74 node: service_volt
75 relationship: tosca.relationships.MemberOfService
76 - subscriber:
77 node: House Targaryen
78 relationship: tosca.relationships.BelongsToSubscriber
79
80 # CORD Services
81 service_volt:
82 type: tosca.nodes.Service
83 requirements:
84 - vcpe_tenant:
85 node: service_vcpe
86 relationship: tosca.relationships.TenantOfService
87 - lan_network:
88 node: lan_network
89 relationship: tosca.relationships.UsesNetwork
90 - wan_network:
91 node: wan_network
92 relationship: tosca.relationships.UsesNetwork
93 properties:
94 view_url: /admin/cord/voltservice/$id$/
95 kind: vOLT
96
97 service_vcpe:
98 type: tosca.nodes.VCPEService
99 requirements:
100 - vbng_tenant:
101 node: service_vbng
102 relationship: tosca.relationships.TenantOfService
103 properties:
104 view_url: /admin/cord/vcpeservice/$id$/
105 backend_network_label: hpc_client
106 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
107 private_key_fn: /opt/xos/observers/vcpe/vcpe_private_key
108 artifacts:
109 pubkey: /root/.ssh/id_rsa.pub #is this right?
110
111 service_vbng:
112 type: tosca.nodes.VBNGService
113 properties:
114 view_url: /admin/cord/vbngservice/$id$/
115
116 # Networks required
117 lan_network:
118 type: tosca.nodes.network.Network
119 properties:
120 ip_version: 4
121 requirements:
122 - network_template:
123 node: Private
124 relationship: tosca.relationships.UsesNetworkTemplate
125 - owner:
126 node: mysite_vcpe
127 relationship: tosca.relationships.MemberOfSlice
128 - connection:
129 node: mysite_vcpe
130 relationship: tosca.relationships.ConnectsToSlice
131 - connection:
132 node: mysite_volt
133 relationship: tosca.relationships.ConnectsToSlice
134
135 wan_network:
136 type: tosca.nodes.network.Network
137 properties:
138 ip_version: 4
139 requirements:
140 - network_template:
141 node: Private
142 relationship: tosca.relationships.UsesNetworkTemplate
143 - owner:
144 node: mysite_vcpe
145 relationship: tosca.relationships.MemberOfSlice
146 - connection:
147 node: mysite_vcpe
148 relationship: tosca.relationships.ConnectsToSlice
149 - connection:
150 node: mysite_vbng
151 relationship: tosca.relationships.ConnectsToSlice
152
153 # Network templates
154 Private:
155 type: tosca.nodes.NetworkTemplate
156
157 # Sites
158 mysite:
159 type: tosca.nodes.Site
160
161 # Slices
162 mysite_vcpe:
163 description: vCPE Controller Slice
164 type: tosca.nodes.Slice
165 requirements:
166 - vcpe_service:
167 node: service_vcpe
168 relationship: tosca.relationships.MemberOfService
169 - site:
170 node: mysite
171 relationship: tosca.relationships.MemberOfSite
172 - vcpe_docker_image:
173 node: docker-vcpe
174 relationship: tosca.relationships.UsesImage
175 properties:
176 default_isolation: container
177
178 mysite_vbng:
179 description: slice running OVS controlled by vBNG
180 type: tosca.nodes.Slice
181 requirements:
182 - site:
183 node: mysite
184 relationship: tosca.relationships.MemberOfSite
185
186 mysite_volt:
187 description: OVS controlled by vOLT
188 type: tosca.nodes.Slice
189 requirements:
190 - site:
191 node: mysite
192 relationship: tosca.relationships.MemberOfSite
193
194 # docker image for vcpe containers
195 docker-vcpe:
196 # TODO: need to attach this to mydeployment
197 type: tosca.nodes.Image
198 properties:
199 kind: container
200 container_format: na
201 disk_format: na
202 path: andybavier/docker-vcpe
203 tag: develop
204