blob: c744a3f6e79ebb04d573c38cc3681ad85c52001a [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo97d853b2018-08-29 16:22:08 -07002#
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 Scandolo77171952018-09-04 14:43:43 -070015# 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 Scandolo97d853b2018-08-29 16:22:08 -070016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/rcordsubscriber.yaml
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070020 - custom_types/bandwidthprofile.yaml
Matteo Scandolo97d853b2018-08-29 16:22:08 -070021
22description: Pre-provsion a subscriber
23
24topology_template:
25 node_templates:
26
Matteo Scandolo50b27102019-06-11 08:40:58 -070027 high_speed_bp:
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070028 type: tosca.nodes.BandwidthProfile
29 properties:
Kailash088c3372019-08-29 09:55:28 -070030 air: 10000
31 cbs: 60536
32 cir: 64000
33 ebs: 5000
34 eir: 64000
Matteo Scandolo50b27102019-06-11 08:40:58 -070035 name: Bronze
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070036
Matteo Scandolo97d853b2018-08-29 16:22:08 -070037 # Pre-provision the subscriber the subscriber
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070038 onf_subscriber_2:
Matteo Scandolo97d853b2018-08-29 16:22:08 -070039 type: tosca.nodes.RCORDSubscriber
40 properties:
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070041 name: Sub_ALPHe3d1cfde
Matteo Scandolo97d853b2018-08-29 16:22:08 -070042 status: pre-provisioned
43 c_tag: 112
Matteo Scandoloc504a2e2018-09-05 14:50:46 -070044 s_tag: 111
Matteo Scandoloed9616f2018-09-10 16:29:10 -070045 onu_device: ALPHe3d1cfde
Matteo Scandolo97d853b2018-08-29 16:22:08 -070046 nas_port_id : "PON 1/1/04/1:1.1.1"
Matteo Scandolo77171952018-09-04 14:43:43 -070047 circuit_id: foo2
48 remote_id: bar2
Matteo Scandolo1f09aad2019-06-18 18:37:36 -070049 tech_profile_id: 64
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070050 requirements:
51 - upstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070052 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070053 relationship: tosca.relationships.BelongsToOne
54 - downstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070055 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070056 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo77171952018-09-04 14:43:43 -070057
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070058 onf_subscriber_3:
Matteo Scandolo77171952018-09-04 14:43:43 -070059 type: tosca.nodes.RCORDSubscriber
60 properties:
Matteo Scandolo93ef8bd2019-06-11 13:58:40 -070061 name: Sub_ISKT71e80080
Matteo Scandolo77171952018-09-04 14:43:43 -070062 status: pre-provisioned
63 c_tag: 113
Matteo Scandoloc504a2e2018-09-05 14:50:46 -070064 s_tag: 111
Matteo Scandolo93ef8bd2019-06-11 13:58:40 -070065 onu_device: ISKT71e80080
66 nas_port_id : "PON 1/1/05/1:1.1.1"
67 circuit_id: foo3
68 remote_id: bar3
Matteo Scandolo1f09aad2019-06-18 18:37:36 -070069 tech_profile_id: 64
Matteo Scandolo93ef8bd2019-06-11 13:58:40 -070070 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 Scandolo77171952018-09-04 14:43:43 -070086 nas_port_id : "PON 1/1/05/1:1.1.1"
87 circuit_id: foo3
88 remote_id: bar3
Matteo Scandolo1f09aad2019-06-18 18:37:36 -070089 tech_profile_id: 64
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070090 requirements:
91 - upstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070092 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070093 relationship: tosca.relationships.BelongsToOne
94 - downstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070095 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070096 relationship: tosca.relationships.BelongsToOne