blob: 8f764d092c6b9c598ec4a23ed2e60860cfed7aa3 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9 tosca.nodes.MCORDComponent:
10 derived_from: tosca.nodes.Root
11 description: >
12 CORD: A Service Component of MCORD Service.
13 properties:
14 kind:
15 type: string
16 default: generic
17 description: Kind of component
18
19topology_template:
20 node_templates:
21 service_mcord:
22 type: tosca.nodes.Service
23 requirements:
24 properties:
25 kind: mcordservice
26
27
28 Private:
29 type: tosca.nodes.NetworkTemplate
30
31 mcord_network:
32 type: tosca.nodes.network.Network.XOS
33 properties:
34 ip_version: 4
35 labels: mcord_service_internal_net
36 cidr: 172.16.16.0/24
37 start_ip: 172.16.16.1
38 end_ip: 172.16.16.5
39 gateway_ip: 172.16.16.1
40
41 requirements:
42 - network_template:
43 node: Private
44 relationship: tosca.relationships.UsesNetworkTemplate
45 - owner:
46 node: mysite_mcord_slice1
47 relationship: tosca.relationships.MemberOfSlice
48 - connection:
49 node: mysite_mcord_slice1
50 relationship: tosca.relationships.ConnectsToSlice
51
52 mysite:
53 type: tosca.nodes.Site
54
55
56 mcord-server-image-s1:
57 type: tosca.nodes.Image
58
59 trusty-server-multi-nic:
60 type: tosca.nodes.Image
61
62 mysite_mcord_slice1:
63 description: MCORD Service Slice 1
64 type: tosca.nodes.Slice
65 requirements:
66 - mcord_service:
67 node: service_mcord
68 relationship: tosca.relationships.MemberOfService
69 - site:
70 node: mysite
71 relationship: tosca.relationships.MemberOfSite
72 - default_image:
73 node: trusty-server-multi-nic
74# node: mcord-server-image-s1
75 relationship: tosca.relationships.DefaultImage
76 properties:
77 default_flavor: m1.medium
78 default_node: ip-10-0-10-125
79
80 my_service_mcord_component1:
81 description: MCORD Service default Component
82 type: tosca.nodes.MCORDComponent
83 # properties:
84 # view_url: /mcord/?service=vBBU
85 # kind: RAN
86 requirements:
87 - provider_service:
88 node: service_mcord
89 relationship: tosca.relationships.MemberOfService
90 - mcord_slice:
91 node: mysite_mcord_slice1
92 relationship: tosca.relationships.MemberOfSlice
93
94 # Nodes
95 compute9:
96 type: tosca.nodes.Node
97 properties:
98 view_url: /mcord/?service=vBBU
99 kind: RAN
100 requirements:
101 - site:
102 node: mysite
103 relationship: tosca.relationships.MemberOfSite
104 - deployment:
105 node: MyDeployment
106 relationship: tosca.relationships.MemberOfDeployment