Matteo Scandolo | d4195ce | 2020-01-15 14:33:56 -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 | |
Matteo Scandolo | d5a9968 | 2020-01-15 15:55:47 -0800 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onf-p4-demo-pod-subscriber.yaml http://192.168.100.1:30007/run |
Matteo Scandolo | d4195ce | 2020-01-15 14:33:56 -0800 | [diff] [blame] | 16 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 19 | - custom_types/rcordsubscriber.yaml |
| 20 | - custom_types/bandwidthprofile.yaml |
| 21 | |
| 22 | description: Pre-provision subscribers |
| 23 | |
| 24 | topology_template: |
| 25 | node_templates: |
| 26 | |
| 27 | default: |
| 28 | type: tosca.nodes.BandwidthProfile |
| 29 | properties: |
| 30 | name: Default |
| 31 | must-exist: true |
| 32 | air: 100000 |
| 33 | cbs: 30 |
| 34 | cir: 600 |
| 35 | ebs: 30 |
| 36 | eir: 400 |
| 37 | |
| 38 | low_speed_bp: |
| 39 | type: tosca.nodes.BandwidthProfile |
| 40 | properties: |
| 41 | air: 100000 |
| 42 | cbs: 2000 |
| 43 | cir: 5000 |
| 44 | ebs: 2000 |
| 45 | eir: 3000 |
| 46 | name: 8Mbps |
| 47 | |
| 48 | high_speed_bp: |
| 49 | type: tosca.nodes.BandwidthProfile |
| 50 | properties: |
| 51 | air: 120000 |
| 52 | cbs: 2000 |
| 53 | cir: 100000 |
| 54 | ebs: 2000 |
| 55 | eir: 5000 |
| 56 | name: 100Mbps |
| 57 | |
| 58 | edgecore_alpha_subscriber: |
| 59 | type: tosca.nodes.RCORDSubscriber |
| 60 | properties: |
| 61 | name: "John Smith" |
| 62 | status: pre-provisioned |
| 63 | c_tag: 12 |
| 64 | s_tag: 111 |
| 65 | onu_device: ALPHe3d1cfe3 |
| 66 | nas_port_id: "PON 1/1/04/1:1.1.1" |
| 67 | circuit_id: "" |
| 68 | remote_id: "" |
| 69 | tech_profile_id: 64 |
| 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 | edgecore_iskratel_subscriber: |
| 79 | type: tosca.nodes.RCORDSubscriber |
| 80 | properties: |
| 81 | name: "Emma Brown" |
| 82 | status: pre-provisioned |
| 83 | c_tag: 11 |
| 84 | s_tag: 111 |
| 85 | onu_device: ISKT71e80080 |
| 86 | nas_port_id : "PON 1/1/04/1:1.1.2" |
| 87 | circuit_id: "" |
| 88 | remote_id: "" |
| 89 | tech_profile_id: 64 |
| 90 | requirements: |
| 91 | - upstream_bps: |
| 92 | node: low_speed_bp |
| 93 | relationship: tosca.relationships.BelongsToOne |
| 94 | - downstream_bps: |
| 95 | node: low_speed_bp |
| 96 | relationship: tosca.relationships.BelongsToOne |