Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-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 | |
| 18 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: Creates a CORD test subscriber, created by platform-install |
| 22 | |
| 23 | imports: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 24 | - custom_types/cordsubscriberroot.yaml |
Matteo Scandolo | 6ac82dc | 2018-04-05 13:44:34 -0700 | [diff] [blame] | 25 | - custom_types/ponport.yaml |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 26 | - custom_types/site.yaml |
| 27 | - custom_types/slice.yaml |
| 28 | - custom_types/user.yaml |
| 29 | - custom_types/voltservice.yaml |
Matteo Scandolo | 6ac82dc | 2018-04-05 13:44:34 -0700 | [diff] [blame] | 30 | - custom_types/oltdevice.yaml |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 31 | - custom_types/serviceinstancelink.yaml |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 32 | |
| 33 | topology_template: |
| 34 | node_templates: |
| 35 | |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 36 | # site, fully created in deployment.yaml |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 37 | {{ site_name }}: |
| 38 | type: tosca.nodes.Site |
| 39 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 40 | name: {{ site_name }} |
| 41 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 42 | |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 43 | # vsg slice, volt service, fully created in cord-services.yaml |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 44 | {{ site_name }}_vsg: |
| 45 | type: tosca.nodes.Slice |
| 46 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 47 | name: {{ site_name }}_vsg |
| 48 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 49 | |
| 50 | service#volt: |
| 51 | type: tosca.nodes.VOLTService |
| 52 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 53 | name: volt |
| 54 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 55 | |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 56 | # Setup an OLT Device |
Matteo Scandolo | 539bb28 | 2018-04-06 15:58:27 -0700 | [diff] [blame] | 57 | olt_device: |
Matteo Scandolo | 6ac82dc | 2018-04-05 13:44:34 -0700 | [diff] [blame] | 58 | type: tosca.nodes.OLTDevice |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 59 | properties: |
Matteo Scandolo | b7bb8ce | 2018-04-06 10:08:29 -0700 | [diff] [blame] | 60 | name: volt-1 |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 61 | host: 8.8.8.8 |
| 62 | port: 2194 |
Scott Baker | a550816 | 2018-04-16 08:31:43 -0700 | [diff] [blame] | 63 | device_type: simulated_olt |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 64 | requirements: |
| 65 | - volt_service: |
| 66 | node: service#volt |
| 67 | relationship: tosca.relationships.BelongsToOne |
| 68 | |
Matteo Scandolo | 539bb28 | 2018-04-06 15:58:27 -0700 | [diff] [blame] | 69 | pon_port: |
Matteo Scandolo | 6ac82dc | 2018-04-05 13:44:34 -0700 | [diff] [blame] | 70 | type: tosca.nodes.PONPort |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 71 | properties: |
Matteo Scandolo | b7bb8ce | 2018-04-06 10:08:29 -0700 | [diff] [blame] | 72 | name: volt-port-1 |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 73 | s_tag: 222 |
| 74 | requirements: |
Matteo Scandolo | 539bb28 | 2018-04-06 15:58:27 -0700 | [diff] [blame] | 75 | - olt_device: |
| 76 | node: olt_device |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 77 | relationship: tosca.relationships.BelongsToOne |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 78 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 79 | # A subscriber |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 80 | my_house: |
| 81 | type: tosca.nodes.CordSubscriberRoot |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 82 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 83 | name: My House |
| 84 | service_specific_id: "123" |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 85 | firewall_enable: false |
| 86 | cdn_enable: false |
| 87 | url_filter_enable: false |
| 88 | url_filter_level: R |
Matteo Scandolo | 7b1f308 | 2018-02-28 14:37:47 -0800 | [diff] [blame] | 89 | c_tag: 111 |
Matteo Scandolo | 3b4c3b7 | 2018-03-02 13:20:13 -0800 | [diff] [blame] | 90 | olt_device: volt-1 |
| 91 | olt_port: volt-port-1 |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 92 | |
Matteo Scandolo | 7b1f308 | 2018-02-28 14:37:47 -0800 | [diff] [blame] | 93 | # TODO needs to be moved to a new model (now they are JSON encoded) |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 94 | # Mom's PC: |
| 95 | # type: tosca.nodes.CORDUser |
| 96 | # properties: |
| 97 | # mac: 01:02:03:04:05:06 |
| 98 | # level: PG_13 |
| 99 | # requirements: |
| 100 | # - household: |
| 101 | # node: My House |
| 102 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 103 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 104 | # Dad's PC: |
| 105 | # type: tosca.nodes.CORDUser |
| 106 | # properties: |
| 107 | # mac: 90:E2:BA:82:F9:75 |
| 108 | # level: PG_13 |
| 109 | # requirements: |
| 110 | # - household: |
| 111 | # node: My House |
| 112 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 113 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 114 | # Jack's Laptop: |
| 115 | # type: tosca.nodes.CORDUser |
| 116 | # properties: |
| 117 | # mac: 68:5B:35:9D:91:D5 |
| 118 | # level: PG_13 |
| 119 | # requirements: |
| 120 | # - household: |
| 121 | # node: My House |
| 122 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 123 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 124 | # Jill's Laptop: |
| 125 | # type: tosca.nodes.CORDUser |
| 126 | # properties: |
| 127 | # mac: 34:36:3B:C9:B6:A6 |
| 128 | # level: PG_13 |
| 129 | # requirements: |
| 130 | # - household: |
| 131 | # node: My House |
| 132 | # relationship: tosca.relationships.SubscriberDevice |