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 | |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 42 | handover#onf-handover: |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 43 | type: tosca.nodes.Handover |
| 44 | properties: |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 45 | 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 Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 56 | enodeb#accelleran: |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 57 | type: tosca.nodes.ENodeB |
| 58 | properties: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 59 | description: accelleran |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 60 | enbId: "1" |
| 61 | ipAddr: 0.0.0.0 |
| 62 | |
| 63 | # SUBSCRIBERS |
| 64 | imsi#IMSI1: |
| 65 | type: tosca.nodes.MCordSubscriberInstance |
| 66 | properties: |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 67 | imsi_number: "732111000000420" |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 68 | 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 Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 78 | imsi_number: "732111000000421" |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 79 | 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 Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 91 | DlWifiRate: 0 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 92 | DlSchedType: RR |
| 93 | DlAllocRBRate: 50 |
| 94 | UlSchedType: RR |
| 95 | UlAllocRBRate: 50 |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 96 | mmeip: 10.90.0.131 |
| 97 | mmeport: "36412" |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 98 | requirements: |
| 99 | - owner: |
| 100 | node: service#progran |
| 101 | relationship: tosca.relationships.BelongsToOne |
| 102 | - handover: |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 103 | node: handover#onf-handover |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 104 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 105 | - enodeb: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 106 | node: enodeb#accelleran |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 107 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 108 | |
| 109 | profile#download-slice: |
| 110 | type: tosca.nodes.ProgranServiceInstance |
| 111 | properties: |
| 112 | name: download-slice |
| 113 | CellIndividualOffset: 0 |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 114 | DlWifiRate: 0 |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 115 | DlSchedType: RR |
| 116 | DlAllocRBRate: 20 |
| 117 | UlSchedType: RR |
| 118 | UlAllocRBRate: 20 |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 119 | mmeip: 10.90.0.131 |
| 120 | mmeport: "36412" |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 121 | requirements: |
| 122 | - owner: |
| 123 | node: service#progran |
| 124 | relationship: tosca.relationships.BelongsToOne |
| 125 | - handover: |
Woojoong Kim | c50fe2e | 2019-09-03 14:05:02 -0700 | [diff] [blame] | 126 | node: handover#onf-handover |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 127 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 128 | - enodeb: |
Pingping Lin | 389634e | 2019-02-18 18:23:34 -0800 | [diff] [blame] | 129 | node: enodeb#accelleran |
Matteo Scandolo | c474353 | 2019-02-18 17:06:54 -0800 | [diff] [blame] | 130 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | baa4559 | 2019-02-18 15:20:28 -0800 | [diff] [blame] | 131 | |
| 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 |