blob: 050b79e03bd0078e5feafb5af0088ba13bf08898 [file] [log] [blame]
Matteo Scandolobaa45592019-02-18 15:20:28 -08001# Copyright 2017-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
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070042 handover#onf-handover:
Matteo Scandolobaa45592019-02-18 15:20:28 -080043 type: tosca.nodes.Handover
44 properties:
Matteo Scandolobaa45592019-02-18 15:20:28 -080045 A3offset: 1
46 A3TriggerQuantity: 0
47 A5Thresh1Rsrp: 74
48 A5Thresh1Rsrq: 10
49 A5Thresh2Rsrp: 78
50 A5Thresh2Rsrq: 10
51 A5TriggerQuantity: 0
52 A5TriggerType: 0
53 HysteresisA3: 0
54 HysteresisA5: 1
55
Pingping Lin389634e2019-02-18 18:23:34 -080056 enodeb#accelleran:
Matteo Scandolobaa45592019-02-18 15:20:28 -080057 type: tosca.nodes.ENodeB
58 properties:
Pingping Lin389634e2019-02-18 18:23:34 -080059 description: accelleran
Matteo Scandolobaa45592019-02-18 15:20:28 -080060 enbId: "1"
61 ipAddr: 0.0.0.0
62
63 # SUBSCRIBERS
64 imsi#IMSI1:
65 type: tosca.nodes.MCordSubscriberInstance
66 properties:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070067 imsi_number: "732111000000420"
Matteo Scandolobaa45592019-02-18 15:20:28 -080068 name: IMSI1
69 ue_status: "1"
70 requirements:
71 - owner:
72 node: service#mcord
73 relationship: tosca.relationships.BelongsToOne
74
75 imsi#IMSI2:
76 type: tosca.nodes.MCordSubscriberInstance
77 properties:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070078 imsi_number: "732111000000421"
Matteo Scandolobaa45592019-02-18 15:20:28 -080079 name: IMSI2
80 ue_status: "1"
81 requirements:
82 - owner:
83 node: service#mcord
84 relationship: tosca.relationships.BelongsToOne
85
86 profile#video-slice:
87 type: tosca.nodes.ProgranServiceInstance
88 properties:
89 name: video-slice
90 CellIndividualOffset: 0
Pingping Lin389634e2019-02-18 18:23:34 -080091 DlWifiRate: 0
Matteo Scandolobaa45592019-02-18 15:20:28 -080092 DlSchedType: RR
93 DlAllocRBRate: 50
94 UlSchedType: RR
95 UlAllocRBRate: 50
Woojoong Kimc50fe2e2019-09-03 14:05:02 -070096 mmeip: 10.90.0.131
97 mmeport: "36412"
Matteo Scandolobaa45592019-02-18 15:20:28 -080098 requirements:
99 - owner:
100 node: service#progran
101 relationship: tosca.relationships.BelongsToOne
102 - handover:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -0700103 node: handover#onf-handover
Matteo Scandolobaa45592019-02-18 15:20:28 -0800104 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800105 - enodeb:
Pingping Lin389634e2019-02-18 18:23:34 -0800106 node: enodeb#accelleran
Matteo Scandoloc4743532019-02-18 17:06:54 -0800107 relationship: tosca.relationships.BelongsToOne
Matteo Scandolobaa45592019-02-18 15:20:28 -0800108
109 profile#download-slice:
110 type: tosca.nodes.ProgranServiceInstance
111 properties:
112 name: download-slice
113 CellIndividualOffset: 0
Pingping Lin389634e2019-02-18 18:23:34 -0800114 DlWifiRate: 0
Matteo Scandolobaa45592019-02-18 15:20:28 -0800115 DlSchedType: RR
116 DlAllocRBRate: 20
117 UlSchedType: RR
118 UlAllocRBRate: 20
Woojoong Kimc50fe2e2019-09-03 14:05:02 -0700119 mmeip: 10.90.0.131
120 mmeport: "36412"
Matteo Scandolobaa45592019-02-18 15:20:28 -0800121 requirements:
122 - owner:
123 node: service#progran
124 relationship: tosca.relationships.BelongsToOne
125 - handover:
Woojoong Kimc50fe2e2019-09-03 14:05:02 -0700126 node: handover#onf-handover
Matteo Scandolobaa45592019-02-18 15:20:28 -0800127 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800128 - enodeb:
Pingping Lin389634e2019-02-18 18:23:34 -0800129 node: enodeb#accelleran
Matteo Scandoloc4743532019-02-18 17:06:54 -0800130 relationship: tosca.relationships.BelongsToOne
Matteo Scandolobaa45592019-02-18 15:20:28 -0800131
132 imsi2_to_video_slice:
133 type: tosca.nodes.ServiceInstanceLink
134 requirements:
135 - provider_service_instance:
136 node: profile#video-slice
137 relationship: tosca.relationships.BelongsToOne
138 - subscriber_service_instance:
139 node: imsi#IMSI2
140 relationship: tosca.relationships.BelongsToOne
141
142 imsi1_to_download_slice:
143 type: tosca.nodes.ServiceInstanceLink
144 requirements:
145 - provider_service_instance:
146 node: profile#download-slice
147 relationship: tosca.relationships.BelongsToOne
148 - subscriber_service_instance:
149 node: imsi#IMSI1
150 relationship: tosca.relationships.BelongsToOne