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 | |
| 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 |
| 105 | |
| 106 | profile#download-slice: |
| 107 | type: tosca.nodes.ProgranServiceInstance |
| 108 | properties: |
| 109 | name: download-slice |
| 110 | CellIndividualOffset: 0 |
| 111 | DlSchedType: RR |
| 112 | DlAllocRBRate: 20 |
| 113 | UlSchedType: RR |
| 114 | UlAllocRBRate: 20 |
| 115 | mmeip: 10.90.0.152 |
| 116 | mmeport: "31412" |
| 117 | requirements: |
| 118 | - owner: |
| 119 | node: service#progran |
| 120 | relationship: tosca.relationships.BelongsToOne |
| 121 | - handover: |
| 122 | node: handover#barcelona-handover |
| 123 | relationship: tosca.relationships.BelongsToOne |
| 124 | |
| 125 | imsi2_to_video_slice: |
| 126 | type: tosca.nodes.ServiceInstanceLink |
| 127 | requirements: |
| 128 | - provider_service_instance: |
| 129 | node: profile#video-slice |
| 130 | relationship: tosca.relationships.BelongsToOne |
| 131 | - subscriber_service_instance: |
| 132 | node: imsi#IMSI2 |
| 133 | relationship: tosca.relationships.BelongsToOne |
| 134 | |
| 135 | imsi1_to_download_slice: |
| 136 | type: tosca.nodes.ServiceInstanceLink |
| 137 | requirements: |
| 138 | - provider_service_instance: |
| 139 | node: profile#download-slice |
| 140 | relationship: tosca.relationships.BelongsToOne |
| 141 | - subscriber_service_instance: |
| 142 | node: imsi#IMSI1 |
| 143 | relationship: tosca.relationships.BelongsToOne |