blob: 59d9cfe125896ef4ec2bc9e18a53c867b80bb438 [file] [log] [blame]
Zack Williams682450e2016-11-19 09:04:41 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Creates a CORD test subscriber, created by platform-install
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11# site, fully created in deployment.yaml
12 {{ site_name }}:
13 type: tosca.nodes.Site
14 properties:
15 no-delete: true
16 no-create: true
17 no-update: true
18
19# vsg slice, volt service, fully created in cord-services.yaml
20 {{ site_name }}_vsg:
21 type: tosca.nodes.Slice
22 properties:
23 no-delete: true
24 no-create: true
25 no-update: true
26
27 service#volt:
28 type: tosca.nodes.VOLTService
29 properties:
30 no-delete: true
31 no-create: true
32 no-update: true
33
34# Test subscriber
35
36 # Let's add a user who can be administrator of the household
37 johndoe@myhouse.com:
38 type: tosca.nodes.User
39 properties:
40 password: letmein
41 firstname: john
42 lastname: doe
43 requirements:
44 - site:
45 node: {{ site_name }}
46 relationship: tosca.relationships.MemberOfSite
47 - dependency:
48 node: {{ site_name }}_vsg
49 relationship: tosca.relationships.DependsOn
50
51 # A subscriber
52 My House:
53 type: tosca.nodes.CORDSubscriber
54 properties:
55 service_specific_id: 123
56 firewall_enable: false
57 cdn_enable: false
58 url_filter_enable: false
59 url_filter_level: R
60 requirements:
61 - house_admin:
62 node: johndoe@myhouse.com
63 relationship: tosca.relationships.AdminPrivilege
64
65 Mom's PC:
66 type: tosca.nodes.CORDUser
67 properties:
68 mac: 01:02:03:04:05:06
69 level: PG_13
70 requirements:
71 - household:
72 node: My House
73 relationship: tosca.relationships.SubscriberDevice
74
75 Dad's PC:
76 type: tosca.nodes.CORDUser
77 properties:
78 mac: 90:E2:BA:82:F9:75
79 level: PG_13
80 requirements:
81 - household:
82 node: My House
83 relationship: tosca.relationships.SubscriberDevice
84
85 Jack's Laptop:
86 type: tosca.nodes.CORDUser
87 properties:
88 mac: 68:5B:35:9D:91:D5
89 level: PG_13
90 requirements:
91 - household:
92 node: My House
93 relationship: tosca.relationships.SubscriberDevice
94
95 Jill's Laptop:
96 type: tosca.nodes.CORDUser
97 properties:
98 mac: 34:36:3B:C9:B6:A6
99 level: PG_13
100 requirements:
101 - household:
102 node: My House
103 relationship: tosca.relationships.SubscriberDevice
104
105 My Volt:
106 type: tosca.nodes.VOLTTenant
107 properties:
108 service_specific_id: 123
109 s_tag: 222
110 c_tag: 111
111 requirements:
112 - provider_service:
113 node: service#volt
114 relationship: tosca.relationships.MemberOfService
115 - subscriber:
116 node: My House
117 relationship: tosca.relationships.BelongsToSubscriber
118 - dependency:
119 node: {{ site_name }}_vsg
120 relationship: tosca.relationships.DependsOn
121