blob: 7a8db8799eb87846e67fd1d4db00c1001e85a0cc [file] [log] [blame]
Hyunsun Moona1490f72019-10-10 14:27:58 -07001# Copyright 2019-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onf-mcord-pod1-progran.yaml http://10.90.0.131:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/handover.yaml
20 - custom_types/enodeb.yaml
21 - custom_types/serviceinstancelink.yaml
22 - custom_types/progranservice.yaml
23 - custom_types/progranserviceinstance.yaml
24 - custom_types/mcordsubscriberservice.yaml
25 - custom_types/mcordsubscriberinstance.yaml
26
27topology_template:
28 node_templates:
29
30 service#progran:
31 type: tosca.nodes.ProgranService
32 properties:
33 name: progran
34 must-exist: true
35
36 service#mcord:
37 type: tosca.nodes.MCordSubscriberService
38 properties:
39 name: mcord
40 must-exist: true
41
42 handover#barcelona-handover:
43 type: tosca.nodes.Handover
44 properties:
45 name: barcelona-handover
46 A3offset: 1
47 A3TriggerQuantity: 0
48 A5Thresh1Rsrp: 74
49 A5Thresh1Rsrq: 10
50 A5Thresh2Rsrp: 78
51 A5Thresh2Rsrq: 10
52 A5TriggerQuantity: 0
53 A5TriggerType: 0
54 HysteresisA3: 0
55 HysteresisA5: 1
56
57 enodeb#accelleran:
58 type: tosca.nodes.ENodeB
59 properties:
60 description: accelleran
61 enbId: "1"
62 ipAddr: 10.90.0.131
63
64 # SUBSCRIBERS
65 imsi#IMSI1:
66 type: tosca.nodes.MCordSubscriberInstance
67 properties:
68 imsi_number: "732111000000420"
69 name: IMSI1
70 ue_status: "1"
71 requirements:
72 - owner:
73 node: service#mcord
74 relationship: tosca.relationships.BelongsToOne
75
76 imsi#IMSI2:
77 type: tosca.nodes.MCordSubscriberInstance
78 properties:
79 imsi_number: "732111000000421"
80 name: IMSI2
81 ue_status: "1"
82 requirements:
83 - owner:
84 node: service#mcord
85 relationship: tosca.relationships.BelongsToOne
86
87 profile#video-slice:
88 type: tosca.nodes.ProgranServiceInstance
89 properties:
90 name: video-slice
91 CellIndividualOffset: 0
92 DlWifiRate: 0
93 DlSchedType: RR
94 DlAllocRBRate: 50
95 UlSchedType: RR
96 UlAllocRBRate: 50
97 mmeip: 10.90.0.151
98 mmeport: "36412"
99 start: 1567321200
100 end: 1569826800
101 SubsProfile: IMSI2
102 requirements:
103 - owner:
104 node: service#progran
105 relationship: tosca.relationships.BelongsToOne
106 - handover:
107 node: handover#barcelona-handover
108 relationship: tosca.relationships.BelongsToOne
109 - enodeb:
110 node: enodeb#accelleran
111 relationship: tosca.relationships.BelongsToOne
112
113 profile#download-slice:
114 type: tosca.nodes.ProgranServiceInstance
115 properties:
116 name: download-slice
117 CellIndividualOffset: 0
118 DlWifiRate: 0
119 DlSchedType: RR
120 DlAllocRBRate: 20
121 UlSchedType: RR
122 UlAllocRBRate: 20
123 mmeip: 10.90.0.151
124 mmeport: "36412"
125 start: 1567321200
126 end: 1569826800
127 SubsProfile: IMSI1
128 requirements:
129 - owner:
130 node: service#progran
131 relationship: tosca.relationships.BelongsToOne
132 - handover:
133 node: handover#barcelona-handover
134 relationship: tosca.relationships.BelongsToOne
135 - enodeb:
136 node: enodeb#accelleran
137 relationship: tosca.relationships.BelongsToOne
138
139 imsi2_to_video_slice:
140 type: tosca.nodes.ServiceInstanceLink
141 requirements:
142 - provider_service_instance:
143 node: profile#video-slice
144 relationship: tosca.relationships.BelongsToOne
145 - subscriber_service_instance:
146 node: imsi#IMSI2
147 relationship: tosca.relationships.BelongsToOne
148
149 imsi1_to_download_slice:
150 type: tosca.nodes.ServiceInstanceLink
151 requirements:
152 - provider_service_instance:
153 node: profile#download-slice
154 relationship: tosca.relationships.BelongsToOne
155 - subscriber_service_instance:
156 node: imsi#IMSI1
157 relationship: tosca.relationships.BelongsToOne