Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [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 | |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-subscriber.yaml http://10.90.0.101:30007/run |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 16 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 19 | - custom_types/rcordsubscriber.yaml |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 20 | - custom_types/bandwidthprofile.yaml |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 21 | |
| 22 | description: Pre-provsion a subscriber |
| 23 | |
| 24 | topology_template: |
| 25 | node_templates: |
| 26 | |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 27 | high_speed_bp: |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 28 | type: tosca.nodes.BandwidthProfile |
| 29 | properties: |
Kailash | 088c337 | 2019-08-29 09:55:28 -0700 | [diff] [blame] | 30 | air: 10000 |
| 31 | cbs: 60536 |
| 32 | cir: 64000 |
| 33 | ebs: 5000 |
| 34 | eir: 64000 |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 35 | name: Bronze |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 36 | |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 37 | # Pre-provision the subscriber the subscriber |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 38 | onf_subscriber_2: |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 39 | type: tosca.nodes.RCORDSubscriber |
| 40 | properties: |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 41 | name: Sub_ALPHe3d1cfde |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 42 | status: pre-provisioned |
| 43 | c_tag: 112 |
Matteo Scandolo | c504a2e | 2018-09-05 14:50:46 -0700 | [diff] [blame] | 44 | s_tag: 111 |
Matteo Scandolo | ed9616f | 2018-09-10 16:29:10 -0700 | [diff] [blame] | 45 | onu_device: ALPHe3d1cfde |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 46 | nas_port_id : "PON 1/1/04/1:1.1.1" |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 47 | circuit_id: foo2 |
| 48 | remote_id: bar2 |
Matteo Scandolo | 1f09aad | 2019-06-18 18:37:36 -0700 | [diff] [blame] | 49 | tech_profile_id: 64 |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 50 | requirements: |
| 51 | - upstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 52 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 53 | relationship: tosca.relationships.BelongsToOne |
| 54 | - downstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 55 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 56 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 57 | |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 58 | onf_subscriber_3: |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 59 | type: tosca.nodes.RCORDSubscriber |
| 60 | properties: |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 61 | name: Sub_ISKT71e80080 |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 62 | status: pre-provisioned |
| 63 | c_tag: 113 |
Matteo Scandolo | c504a2e | 2018-09-05 14:50:46 -0700 | [diff] [blame] | 64 | s_tag: 111 |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 65 | onu_device: ISKT71e80080 |
| 66 | nas_port_id : "PON 1/1/05/1:1.1.1" |
| 67 | circuit_id: foo3 |
| 68 | remote_id: bar3 |
Matteo Scandolo | 1f09aad | 2019-06-18 18:37:36 -0700 | [diff] [blame] | 69 | tech_profile_id: 64 |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 70 | requirements: |
| 71 | - upstream_bps: |
| 72 | node: high_speed_bp |
| 73 | relationship: tosca.relationships.BelongsToOne |
| 74 | - downstream_bps: |
| 75 | node: high_speed_bp |
| 76 | relationship: tosca.relationships.BelongsToOne |
| 77 | |
| 78 | onf_subscriber_4: |
| 79 | type: tosca.nodes.RCORDSubscriber |
| 80 | properties: |
| 81 | name: Sub_ALPHe3d1cfac |
| 82 | status: pre-provisioned |
| 83 | c_tag: 111 |
| 84 | s_tag: 111 |
| 85 | onu_device: ALPHe3d1cfac |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 86 | nas_port_id : "PON 1/1/05/1:1.1.1" |
| 87 | circuit_id: foo3 |
| 88 | remote_id: bar3 |
Matteo Scandolo | 1f09aad | 2019-06-18 18:37:36 -0700 | [diff] [blame] | 89 | tech_profile_id: 64 |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 90 | requirements: |
| 91 | - upstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 92 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 93 | relationship: tosca.relationships.BelongsToOne |
| 94 | - downstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 95 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 96 | relationship: tosca.relationships.BelongsToOne |