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: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 30 | air: 2000 |
| 31 | cbs: 2000 |
| 32 | cir: 2000 |
| 33 | ebs: 2000 |
| 34 | eir: 2000 |
| 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 | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 49 | requirements: |
| 50 | - upstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 51 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 52 | relationship: tosca.relationships.BelongsToOne |
| 53 | - downstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 54 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 55 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 56 | |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 57 | onf_subscriber_3: |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 58 | type: tosca.nodes.RCORDSubscriber |
| 59 | properties: |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 60 | name: Sub_ISKT71e80080 |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 61 | status: pre-provisioned |
| 62 | c_tag: 113 |
Matteo Scandolo | c504a2e | 2018-09-05 14:50:46 -0700 | [diff] [blame] | 63 | s_tag: 111 |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 64 | onu_device: ISKT71e80080 |
| 65 | nas_port_id : "PON 1/1/05/1:1.1.1" |
| 66 | circuit_id: foo3 |
| 67 | remote_id: bar3 |
| 68 | requirements: |
| 69 | - upstream_bps: |
| 70 | node: high_speed_bp |
| 71 | relationship: tosca.relationships.BelongsToOne |
| 72 | - downstream_bps: |
| 73 | node: high_speed_bp |
| 74 | relationship: tosca.relationships.BelongsToOne |
| 75 | |
| 76 | onf_subscriber_4: |
| 77 | type: tosca.nodes.RCORDSubscriber |
| 78 | properties: |
| 79 | name: Sub_ALPHe3d1cfac |
| 80 | status: pre-provisioned |
| 81 | c_tag: 111 |
| 82 | s_tag: 111 |
| 83 | onu_device: ALPHe3d1cfac |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 84 | nas_port_id : "PON 1/1/05/1:1.1.1" |
| 85 | circuit_id: foo3 |
| 86 | remote_id: bar3 |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 87 | requirements: |
| 88 | - upstream_bps: |
Matteo Scandolo | 50b2710 | 2019-06-11 08:40:58 -0700 | [diff] [blame] | 89 | node: high_speed_bp |
Matteo Scandolo | 7316e5b | 2019-04-17 13:52:16 -0700 | [diff] [blame] | 90 | relationship: tosca.relationships.BelongsToOne |
| 91 | - downstream_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 |