blob: c06e23796330d070b695f8edf99147b938f80796 [file] [log] [blame]
Andy Bavier6e1602e2016-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
11 service_volt:
12 type: tosca.nodes.Service
13 requirements:
14 - vsg_tenant:
15 node: service_vsg
16 relationship: tosca.relationships.TenantOfService
17 properties:
18 view_url: /admin/cord/voltservice/$id$/
19 kind: vOLT
20
21 public_addresses:
22 type: tosca.nodes.AddressPool
23 properties:
Andy Baviera6a7c0b2016-03-02 14:22:10 -050024 addresses: 10.168.0.0/24
Andy Bavier6e1602e2016-02-17 14:14:11 -050025
26 service_vsg:
27 type: tosca.nodes.VSGService
28 requirements:
29 - vbng_tenant:
30 node: service_vbng
31 relationship: tosca.relationships.TenantOfService
32 properties:
33 view_url: /admin/cord/vsgservice/$id$/
34 backend_network_label: hpc_client
35 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
36 private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key
Andy Baviera6a7c0b2016-03-02 14:22:10 -050037 wan_container_gateway_ip: 10.168.0.1
38 wan_container_gateway_mac: 02:42:0a:a8:00:01
Andy Bavierc57fc262016-03-01 16:51:33 -050039 wan_container_netbits: 24
Scott Baker4b9d40d2016-03-04 12:10:13 -080040# node_label: label_vsg
Andy Bavier6e1602e2016-02-17 14:14:11 -050041 artifacts:
42 pubkey: /opt/xos/synchronizers/vcpe/vcpe_public_key
43
44 service_vbng:
45 type: tosca.nodes.VBNGService
46 properties:
47 view_url: /admin/cord/vbngservice/$id$/
48# if unspecified, vbng observer will look for an ONOSApp Tenant and
49# generate a URL from its IP address
50# vbng_url: http://10.11.10.24:8181/onos/virtualbng/
51
52 Private:
53 type: tosca.nodes.NetworkTemplate
54
55 management:
56 type: tosca.nodes.network.Network.XOS
57 properties:
58 no-create: true
59 no-delete: true
60 no-update: true
61
62 mysite:
63 type: tosca.nodes.Site
64
Scott Bakerc4d78da2016-03-04 10:44:41 -080065 label_vsg:
66 type: tosca.nodes.NodeLabel
67
Andy Bavier6e1602e2016-02-17 14:14:11 -050068 # Networks required by the CORD setup
69 mysite_vsg-access:
70 type: tosca.nodes.network.Network
71 properties:
72 ip_version: 4
73 requirements:
74 - network_template:
75 node: Private
76 relationship: tosca.relationships.UsesNetworkTemplate
77 - owner:
78 node: mysite_vsg
79 relationship: tosca.relationships.MemberOfSlice
80 - connection:
81 node: mysite_vsg
82 relationship: tosca.relationships.ConnectsToSlice
83
84 # CORD Slices
85 mysite_vsg:
86 description: vSG Controller Slice
87 type: tosca.nodes.Slice
88 properties:
89 network: noauto
90 requirements:
91 - vsg_service:
92 node: service_vsg
93 relationship: tosca.relationships.MemberOfService
94 - site:
95 node: mysite
96 relationship: tosca.relationships.MemberOfSite
97 - management:
98 node: management
99 relationship: tosca.relationships.ConnectsToNetwork
100
101 # Let's add a user who can be administrator of the household
102 johndoe@myhouse.com:
103 type: tosca.nodes.User
104 properties:
105 password: letmein
106 firstname: john
107 lastname: doe
108 requirements:
109 - site:
110 node: mysite
111 relationship: tosca.relationships.MemberOfSite
112
113 # A subscriber
114 My House:
115 type: tosca.nodes.CORDSubscriber
116 properties:
117 service_specific_id: 123
118 firewall_enable: false
119 cdn_enable: false
120 url_filter_enable: false
121 url_filter_level: R
122 requirements:
123 - house_admin:
124 node: johndoe@myhouse.com
125 relationship: tosca.relationships.AdminPrivilege
126
127 Mom's PC:
128 type: tosca.nodes.CORDUser
129 properties:
130 mac: 01:02:03:04:05:06
131 level: PG_13
132 requirements:
133 - household:
134 node: My House
135 relationship: tosca.relationships.SubscriberDevice
136
137 Dad's PC:
138 type: tosca.nodes.CORDUser
139 properties:
140 mac: 90:E2:BA:82:F9:75
141 level: PG_13
142 requirements:
143 - household:
144 node: My House
145 relationship: tosca.relationships.SubscriberDevice
146
147 Jack's Laptop:
148 type: tosca.nodes.CORDUser
149 properties:
150 mac: 68:5B:35:9D:91:D5
151 level: PG_13
152 requirements:
153 - household:
154 node: My House
155 relationship: tosca.relationships.SubscriberDevice
156
157 Jill's Laptop:
158 type: tosca.nodes.CORDUser
159 properties:
160 mac: 34:36:3B:C9:B6:A6
161 level: PG_13
162 requirements:
163 - household:
164 node: My House
165 relationship: tosca.relationships.SubscriberDevice
166
167 My Volt:
168 type: tosca.nodes.VOLTTenant
169 properties:
170 service_specific_id: 123
171 s_tag: 222
Andy Bavierb50c25f2016-02-19 11:17:54 -0500172 c_tag: 111
Andy Bavier6e1602e2016-02-17 14:14:11 -0500173 requirements:
174 - provider_service:
175 node: service_volt
176 relationship: tosca.relationships.MemberOfService
177 - subscriber:
178 node: My House
179 relationship: tosca.relationships.BelongsToSubscriber