blob: bb83caf50fb387385f665703723ba49e112412a4 [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolobaa45592019-02-18 15:20:28 -08002#
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
Woojoong Kim63c49f52019-09-03 19:36:45 -070042 handover#barcelona-handover:
Matteo Scandolobaa45592019-02-18 15:20:28 -080043 type: tosca.nodes.Handover
44 properties:
Woojoong Kim63c49f52019-09-03 19:36:45 -070045 name: barcelona-handover
Matteo Scandolobaa45592019-02-18 15:20:28 -080046 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
Pingping Lin389634e2019-02-18 18:23:34 -080057 enodeb#accelleran:
Matteo Scandolobaa45592019-02-18 15:20:28 -080058 type: tosca.nodes.ENodeB
59 properties:
Pingping Lin389634e2019-02-18 18:23:34 -080060 description: accelleran
Matteo Scandolobaa45592019-02-18 15:20:28 -080061 enbId: "1"
62 ipAddr: 0.0.0.0
63
64 # SUBSCRIBERS
65 imsi#IMSI1:
66 type: tosca.nodes.MCordSubscriberInstance
67 properties:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070068 imsi_number: "732111000000420"
Matteo Scandolobaa45592019-02-18 15:20:28 -080069 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:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070079 imsi_number: "732111000000421"
Matteo Scandolobaa45592019-02-18 15:20:28 -080080 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
Pingping Lin389634e2019-02-18 18:23:34 -080092 DlWifiRate: 0
Matteo Scandolobaa45592019-02-18 15:20:28 -080093 DlSchedType: RR
94 DlAllocRBRate: 50
95 UlSchedType: RR
96 UlAllocRBRate: 50
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070097 mmeip: 10.90.0.131
98 mmeport: "36412"
Woojoong Kim63c49f52019-09-03 19:36:45 -070099 start: 1567321200
100 end: 1569826800
101 SubsProfile: IMSI2
Matteo Scandolobaa45592019-02-18 15:20:28 -0800102 requirements:
103 - owner:
104 node: service#progran
105 relationship: tosca.relationships.BelongsToOne
106 - handover:
Woojoong Kim63c49f52019-09-03 19:36:45 -0700107 node: handover#barcelona-handover
Matteo Scandolobaa45592019-02-18 15:20:28 -0800108 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800109 - enodeb:
Pingping Lin389634e2019-02-18 18:23:34 -0800110 node: enodeb#accelleran
Matteo Scandoloc4743532019-02-18 17:06:54 -0800111 relationship: tosca.relationships.BelongsToOne
Matteo Scandolobaa45592019-02-18 15:20:28 -0800112
113 profile#download-slice:
114 type: tosca.nodes.ProgranServiceInstance
115 properties:
116 name: download-slice
117 CellIndividualOffset: 0
Pingping Lin389634e2019-02-18 18:23:34 -0800118 DlWifiRate: 0
Matteo Scandolobaa45592019-02-18 15:20:28 -0800119 DlSchedType: RR
120 DlAllocRBRate: 20
121 UlSchedType: RR
122 UlAllocRBRate: 20
Woojoong Kimc50fe2e2019-09-03 14:05:02 -0700123 mmeip: 10.90.0.131
124 mmeport: "36412"
Woojoong Kim63c49f52019-09-03 19:36:45 -0700125 start: 1567321200
126 end: 1569826800
127 SubsProfile: IMSI1
Matteo Scandolobaa45592019-02-18 15:20:28 -0800128 requirements:
129 - owner:
130 node: service#progran
131 relationship: tosca.relationships.BelongsToOne
132 - handover:
Woojoong Kim63c49f52019-09-03 19:36:45 -0700133 node: handover#barcelona-handover
Matteo Scandolobaa45592019-02-18 15:20:28 -0800134 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800135 - enodeb:
Pingping Lin389634e2019-02-18 18:23:34 -0800136 node: enodeb#accelleran
Matteo Scandoloc4743532019-02-18 17:06:54 -0800137 relationship: tosca.relationships.BelongsToOne
Matteo Scandolobaa45592019-02-18 15:20:28 -0800138
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