blob: ba79a164608e23c832f06cc50bea1ab0b5953fd9 [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
Matteo Scandolod3c768d2018-04-11 13:38:49 -070040 switch_datapath_id: of:0000000ce2314000
41 switch_port: "5"
42 outer_tpid: "0x8100"
Matteo Scandolof6337eb2018-04-05 15:58:37 -070043 requirements:
44 - volt_service:
45 node: service#volt
46 relationship: tosca.relationships.BelongsToOne
47
48 pon_port:
49 type: tosca.nodes.PONPort
50 properties:
51 name: volt-port-1
52 s_tag: 222
53 requirements:
54 - olt_device:
55 node: olt_device
56 relationship: tosca.relationships.BelongsToOne
57
58 # A subscriber
59 my_house:
60 type: tosca.nodes.CordSubscriberRoot
61 properties:
62 name: My House
63 service_specific_id: "123"
64 firewall_enable: false
65 cdn_enable: false
66 url_filter_enable: false
67 url_filter_level: R
68 c_tag: 111
69 olt_device: volt-1
70 olt_port: volt-port-1
71 uni_port_id: 101
Matteo Scandolod3c768d2018-04-11 13:38:49 -070072 mac_address: 00:AA:00:00:00:01
73 ip_address: 10.8.2.1