blob: ebbb34c6bc779e303e0fd3e87693f6d81d2d7511 [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
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#accelaran:
58 type: tosca.nodes.ENodeB
59 properties:
60 description: accelaran
61 enbId: "1"
62 ipAddr: 0.0.0.0
63
64 # SUBSCRIBERS
65 imsi#IMSI1:
66 type: tosca.nodes.MCordSubscriberInstance
67 properties:
68 imsi_number: "302720100000420"
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: "302720100000421"
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 DlSchedType: RR
93 DlAllocRBRate: 50
94 UlSchedType: RR
95 UlAllocRBRate: 50
96 mmeip: 10.90.0.152
97 mmeport: "31412"
98 requirements:
99 - owner:
100 node: service#progran
101 relationship: tosca.relationships.BelongsToOne
102 - handover:
103 node: handover#barcelona-handover
104 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800105 - enodeb:
106 node: enodeb#accelaran
107 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
114 DlSchedType: RR
115 DlAllocRBRate: 20
116 UlSchedType: RR
117 UlAllocRBRate: 20
118 mmeip: 10.90.0.152
119 mmeport: "31412"
120 requirements:
121 - owner:
122 node: service#progran
123 relationship: tosca.relationships.BelongsToOne
124 - handover:
125 node: handover#barcelona-handover
126 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc4743532019-02-18 17:06:54 -0800127 - enodeb:
128 node: enodeb#accelaran
129 relationship: tosca.relationships.BelongsToOne
Matteo Scandolobaa45592019-02-18 15:20:28 -0800130
131 imsi2_to_video_slice:
132 type: tosca.nodes.ServiceInstanceLink
133 requirements:
134 - provider_service_instance:
135 node: profile#video-slice
136 relationship: tosca.relationships.BelongsToOne
137 - subscriber_service_instance:
138 node: imsi#IMSI2
139 relationship: tosca.relationships.BelongsToOne
140
141 imsi1_to_download_slice:
142 type: tosca.nodes.ServiceInstanceLink
143 requirements:
144 - provider_service_instance:
145 node: profile#download-slice
146 relationship: tosca.relationships.BelongsToOne
147 - subscriber_service_instance:
148 node: imsi#IMSI1
149 relationship: tosca.relationships.BelongsToOne