blob: d003bb2121a364525dffaa073ef313fde0da6326 [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9
10 tosca.nodes.MCORDService:
11 derived_from: tosca.nodes.Root
12 description: >
13 An XOS Service object. Services may be listed in the Service
14 directory and may be linked together via Tenancy Relationships.
15 capabilities:
16 scalable:
17 type: tosca.capabilities.Scalable
18 service:
19 type: tosca.capabilities.xos.Service
20 properties:
21 no-delete:
22 type: boolean
23 default: false
24 description: Do not allow Tosca to delete this object
25 no-create:
26 type: boolean
27 default: false
28 description: Do not allow Tosca to create this object
29 no-update:
30 type: boolean
31 default: false
32 description: Do not allow Tosca to update this object
33 kind:
34 type: string
35 default: VPGWC_KIND
36 description: Type of service.
37 view_url:
38 type: string
39 required: false
40 description: URL to follow when icon is clicked in the Service Directory.
41 icon_url:
42 type: string
43 required: false
44 description: ICON to display in the Service Directory.
45 enabled:
46 type: boolean
47 default: true
48 published:
49 type: boolean
50 default: true
51 description: If True then display this Service in the Service Directory.
52 public_key:
53 type: string
54 required: false
55 description: Public key to install into Instances to allows Services to SSH into them.
56 private_key_fn:
57 type: string
58 required: false
59 description: Location of private key file
60 versionNumber:
61 type: string
62 required: false
63 description: Version number of Service.
64
65 tosca.nodes.VPGWCComponent:
66 derived_from: tosca.nodes.Root
67 description: >
68 CORD: vPGWC Component of MCORD Service.
69 properties:
70 kind:
71 type: string
72 default: VPGWC_KIND
73 description: Kind of component
74 s5s8_pgw_tag:
75 type: string
76 required: false
77 default: 300
78 description: VTN stag port-name
79 display_message:
80 type: string
81 required: false
82 default: New vPGWC Component
83 description: Just a message
84
85
86topology_template:
87 node_templates:
88 vPGWC:
89 type: tosca.nodes.MCORDService
90 requirements:
91 properties:
92 kind: VPGWC_KIND
93 icon_url: /static/mCordServices/service_server.png
94 view_url: /admin/mcord/vpgwccomponent
95 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
96 private_key_fn: /opt/xos/configurations/mcord/mcord_private_key
97 artifacts:
98 pubkey: /opt/xos/configurations/mcord/mcord_public_key
99
100 m1.xlarge:
101 type: tosca.nodes.Flavor
102
103 Private:
104 type: tosca.nodes.NetworkTemplate
105
106 External:
107 type: tosca.nodes.NetworkTemplate
108
109 management_template:
110 type: tosca.nodes.NetworkTemplate
111 properties:
112 visibility: private
113 translation: none
114
115 management:
116 type: tosca.nodes.network.Network.XOS
117# properties:
118# no-create: true
119# no-delete: true
120# no-update: true
121
122 lan_3gpp_s5s8_pgw_network:
123 type: tosca.nodes.network.Network.XOS
124 properties:
125 ip_version: 4
126 labels: lan_3gpp_s5s8_pgw_net
127 cidr: 172.17.1.0/24
128 start_ip: 172.17.1.2
129 end_ip: 172.17.1.8
130 gateway_ip: 172.17.1.1
131 requirements:
132 - network_template:
133 node: External
134 relationship: tosca.relationships.UsesNetworkTemplate
135 - owner:
136 node: mysite_mobile_net
137 relationship: tosca.relationships.MemberOfSlice
138 - connection:
139 node: mysite_vpgwc_slice1
140 relationship: tosca.relationships.ConnectsToSlice
141
142 mysite:
143 type: tosca.nodes.Site
144
145 mcord-vpgwc-onos-multi-nic:
146 type: tosca.nodes.Image
147
148 mysite_management:
149 description: This slice exists solely to own the management network
150 type: tosca.nodes.Slice
151 properties:
152 network: noauto
153 requirements:
154 - site:
155 node: mysite
156 relationship: tosca.relationships.MemberOfSite
157
158 mysite_mobile_net:
159 description: This slice exists solely to own the mobile network
160 type: tosca.nodes.Slice
161 properties:
162 network: noauto
163 requirements:
164 - site:
165 node: mysite
166 relationship: tosca.relationships.MemberOfSite
167
168 mysite_vpgwc_slice1:
169 description: vPGWC Service Slice 1
170 type: tosca.nodes.Slice
171 requirements:
172 - vPGWC:
173 node: vPGWC
174 relationship: tosca.relationships.MemberOfService
175 - site:
176 node: mysite
177 relationship: tosca.relationships.MemberOfSite
178 - default_image:
179 node: mcord-vpgwc-onos-multi-nic
180 relationship: tosca.relationships.DefaultImage
181 - default_flavor:
182 node: m1.xlarge
183 relationship: tosca.relationships.DefaultFlavor
184 - management:
185 node: management
186 relationship: tosca.relationships.ConnectsToNetwork
187 properties:
188 network: noauto
189 default_node: compute10
190
191 mysite_VPGWC_Component:
192 description: MCORD Service default Component
193 type: tosca.nodes.VPGWCComponent
194 requirements:
195 - provider_service:
196 node: vPGWC
197 relationship: tosca.relationships.MemberOfService
198 - vpgwc_slice:
199 node: mysite_vpgwc_slice1
200 relationship: tosca.relationships.MemberOfSlice
201 properties:
202 display_message: vPGWC looks good!
203 s5s8_pgw_tag: 300