blob: 652f4ee23666cf0403b326b10a3afd25365852c1 [file] [log] [blame]
Matteo Scandolo97d853b2018-08-29 16:22:08 -07001# 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 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:
Matteo Scandolo50b27102019-06-11 08:40:58 -070030 air: 2000
31 cbs: 2000
32 cir: 2000
33 ebs: 2000
34 eir: 2000
35 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 Scandolo7316e5b2019-04-17 13:52:16 -070049 requirements:
50 - upstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070051 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070052 relationship: tosca.relationships.BelongsToOne
53 - downstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070054 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070055 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo77171952018-09-04 14:43:43 -070056
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070057 onf_subscriber_3:
Matteo Scandolo77171952018-09-04 14:43:43 -070058 type: tosca.nodes.RCORDSubscriber
59 properties:
Matteo Scandolo93ef8bd2019-06-11 13:58:40 -070060 name: Sub_ISKT71e80080
Matteo Scandolo77171952018-09-04 14:43:43 -070061 status: pre-provisioned
62 c_tag: 113
Matteo Scandoloc504a2e2018-09-05 14:50:46 -070063 s_tag: 111
Matteo Scandolo93ef8bd2019-06-11 13:58:40 -070064 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 Scandolo77171952018-09-04 14:43:43 -070084 nas_port_id : "PON 1/1/05/1:1.1.1"
85 circuit_id: foo3
86 remote_id: bar3
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070087 requirements:
88 - upstream_bps:
Matteo Scandolo50b27102019-06-11 08:40:58 -070089 node: high_speed_bp
Matteo Scandolo7316e5b2019-04-17 13:52:16 -070090 relationship: tosca.relationships.BelongsToOne
91 - downstream_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