blob: 915a8dd3dafe73d339a77218bce2b5c378329267 [file] [log] [blame]
Matteo Scandolof6337eb2018-04-05 15:58:37 -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
15# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @subscriber.yaml http://192.168.99.100:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/cordsubscriberroot.yaml
20 - custom_types/ponport.yaml
21 - custom_types/voltservice.yaml
22 - custom_types/oltdevice.yaml
23description: Create a test subscriber
24topology_template:
25 node_templates:
26 service#volt:
27 type: tosca.nodes.VOLTService
28 properties:
29 name: volt
30 must-exist: true
31
32 # Setup an OLT Device
33 olt_device:
34 type: tosca.nodes.OLTDevice
35 properties:
36 name: volt-1
37 device_type: simulated_olt
38 host: 172.17.0.1
39 port: 50060
40 requirements:
41 - volt_service:
42 node: service#volt
43 relationship: tosca.relationships.BelongsToOne
44
45 pon_port:
46 type: tosca.nodes.PONPort
47 properties:
48 name: volt-port-1
49 s_tag: 222
50 requirements:
51 - olt_device:
52 node: olt_device
53 relationship: tosca.relationships.BelongsToOne
54
55 # A subscriber
56 my_house:
57 type: tosca.nodes.CordSubscriberRoot
58 properties:
59 name: My House
60 service_specific_id: "123"
61 firewall_enable: false
62 cdn_enable: false
63 url_filter_enable: false
64 url_filter_level: R
65 c_tag: 111
66 olt_device: volt-1
67 olt_port: volt-port-1
68 uni_port_id: 101
69# ip_address: 10.8.2.1
70# switch_datapath_id: of:0000000ce2314000