blob: 4c589f968b10b60e9a78186e98a4cfb62707f8c6 [file] [log] [blame]
Andy Bavierd0480392018-03-21 07:52:14 -07001---
2
3# Copyright 2018-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# TOSCA recipe for adding a sample R-CORD subscriber
18#
19# http POST $(minikube service xos-tosca --url)/run \
20# xos-username:admin@opencord.org xos-password:letmein \
21# @./sample-rcord-subscriber-tosca.yaml
22
23
24tosca_definitions_version: tosca_simple_yaml_1_0
25
26description: Creates a CORD test subscriber, created by platform-install
27
28imports:
29 - custom_types/cordsubscriberroot.yaml
30 - custom_types/voltservice.yaml
31 - custom_types/voltdevice.yaml
32 - custom_types/voltdeviceport.yaml
33 - custom_types/serviceinstancelink.yaml
34
35topology_template:
36 node_templates:
37
38 service#volt:
39 type: tosca.nodes.VOLTService
40 properties:
41 name: volt
42 must-exist: true
43
44 # Setup an OLT Device
45 volt_device:
46 type: tosca.nodes.VOLTDevice
47 properties:
48 name: test-volt-device
49 device_id: volt-1
50 host: 8.8.8.8
51 port: 2194
52 requirements:
53 - volt_service:
54 node: service#volt
55 relationship: tosca.relationships.BelongsToOne
56
57 volt_port:
58 type: tosca.nodes.VOLTDevicePort
59 properties:
60 port_id: volt-port-1
61 s_tag: 222
62 requirements:
63 - volt_device:
64 node: volt_device
65 relationship: tosca.relationships.BelongsToOne
66
67 # A subscriber
68 my_house:
69 type: tosca.nodes.CordSubscriberRoot
70 properties:
71 name: My House
72 service_specific_id: "123"
73 firewall_enable: false
74 cdn_enable: false
75 url_filter_enable: false
76 url_filter_level: R
77 c_tag: 111
78 olt_device: volt-1
79 olt_port: volt-port-1