Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 1 | # 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 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 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 | |
| 27 | topology_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 | |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 57 | enodeb#accelleran: |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 58 | type: tosca.nodes.ENodeB |
| 59 | properties: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 60 | description: accelleran |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 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 |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 92 | DlWifiRate: 0 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 93 | DlSchedType: RR |
| 94 | DlAllocRBRate: 50 |
| 95 | UlSchedType: RR |
| 96 | UlAllocRBRate: 50 |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 97 | mmeip: 10.90.0.141 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 98 | mmeport: "31412" |
| 99 | requirements: |
| 100 | - owner: |
| 101 | node: service#progran |
| 102 | relationship: tosca.relationships.BelongsToOne |
| 103 | - handover: |
| 104 | node: handover#barcelona-handover |
| 105 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 106 | - enodeb: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 107 | node: enodeb#accelleran |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 108 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 109 | |
| 110 | profile#download-slice: |
| 111 | type: tosca.nodes.ProgranServiceInstance |
| 112 | properties: |
| 113 | name: download-slice |
| 114 | CellIndividualOffset: 0 |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 115 | DlWifiRate: 0 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 116 | DlSchedType: RR |
| 117 | DlAllocRBRate: 20 |
| 118 | UlSchedType: RR |
| 119 | UlAllocRBRate: 20 |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 120 | mmeip: 10.90.0.141 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 121 | mmeport: "31412" |
| 122 | requirements: |
| 123 | - owner: |
| 124 | node: service#progran |
| 125 | relationship: tosca.relationships.BelongsToOne |
| 126 | - handover: |
| 127 | node: handover#barcelona-handover |
| 128 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 129 | - enodeb: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 130 | node: enodeb#accelleran |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 131 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 132 | |
| 133 | imsi2_to_video_slice: |
| 134 | type: tosca.nodes.ServiceInstanceLink |
| 135 | requirements: |
| 136 | - provider_service_instance: |
| 137 | node: profile#video-slice |
| 138 | relationship: tosca.relationships.BelongsToOne |
| 139 | - subscriber_service_instance: |
| 140 | node: imsi#IMSI2 |
| 141 | relationship: tosca.relationships.BelongsToOne |
| 142 | |
| 143 | imsi1_to_download_slice: |
| 144 | type: tosca.nodes.ServiceInstanceLink |
| 145 | requirements: |
| 146 | - provider_service_instance: |
| 147 | node: profile#download-slice |
| 148 | relationship: tosca.relationships.BelongsToOne |
| 149 | - subscriber_service_instance: |
| 150 | node: imsi#IMSI1 |
| 151 | relationship: tosca.relationships.BelongsToOne |