Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2018-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 17 | imports: |
| 18 | - custom_types/rcordsubscriber.yaml |
Andy Bavier | af38f0d | 2019-04-19 16:03:34 -0700 | [diff] [blame] | 19 | {{- if .Values.bandwidthProfiles }} |
| 20 | - custom_types/bandwidthprofile.yaml |
| 21 | {{- end }} |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 22 | |
| 23 | description: Pre-provsion a subscriber |
| 24 | |
| 25 | topology_template: |
| 26 | node_templates: |
| 27 | |
Andy Bavier | af38f0d | 2019-04-19 16:03:34 -0700 | [diff] [blame] | 28 | {{- if .Values.bandwidthProfiles }} |
| 29 | # Bronze bandwidthprofile for subscriber |
| 30 | bronze_bp: |
| 31 | type: tosca.nodes.BandwidthProfile |
| 32 | properties: |
| 33 | air: 99999 |
| 34 | cbs: 99999 |
| 35 | cir: 99999 |
| 36 | ebs: 99999 |
| 37 | eir: 99999 |
| 38 | name: Bronze |
| 39 | {{- end }} |
| 40 | |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 41 | # Pre-provision the subscriber the subscriber |
| 42 | my_house: |
| 43 | type: tosca.nodes.RCORDSubscriber |
| 44 | properties: |
| 45 | name: QQClient |
| 46 | status: pre-provisioned |
| 47 | c_tag: 111 |
| 48 | s_tag: 222 |
Andy Bavier | af38f0d | 2019-04-19 16:03:34 -0700 | [diff] [blame] | 49 | onu_device: PSMO12345678 |
| 50 | {{- if .Values.bandwidthProfiles }} |
| 51 | requirements: |
| 52 | - upstream_bps: |
| 53 | node: bronze_bp |
| 54 | relationship: tosca.relationships.BelongsToOne |
| 55 | - downstream_bps: |
| 56 | node: bronze_bp |
| 57 | relationship: tosca.relationships.BelongsToOne |
| 58 | {{- end }} |