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 |
| 25 | - custom_types/site.yaml |
| 26 | - custom_types/slice.yaml |
| 27 | - custom_types/user.yaml |
| 28 | - custom_types/voltservice.yaml |
| 29 | - custom_types/volttenant.yaml |
| 30 | - custom_types/serviceinstancelink.yaml |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 31 | |
| 32 | topology_template: |
| 33 | node_templates: |
| 34 | |
| 35 | # site, fully created in deployment.yaml |
| 36 | {{ site_name }}: |
| 37 | type: tosca.nodes.Site |
| 38 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 39 | name: {{ site_name }} |
| 40 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 41 | |
| 42 | # vsg slice, volt service, fully created in cord-services.yaml |
| 43 | {{ site_name }}_vsg: |
| 44 | type: tosca.nodes.Slice |
| 45 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 46 | name: {{ site_name }}_vsg |
| 47 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 48 | |
| 49 | service#volt: |
| 50 | type: tosca.nodes.VOLTService |
| 51 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 52 | name: volt |
| 53 | must-exist: true |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 54 | |
| 55 | # Test subscriber |
| 56 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 57 | # A subscriber |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 58 | my_house: |
| 59 | type: tosca.nodes.CordSubscriberRoot |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 60 | properties: |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 61 | name: My House |
| 62 | service_specific_id: "123" |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 63 | firewall_enable: false |
| 64 | cdn_enable: false |
| 65 | url_filter_enable: false |
| 66 | url_filter_level: R |
Matteo Scandolo | 7b1f308 | 2018-02-28 14:37:47 -0800 | [diff] [blame^] | 67 | s_tag: 222 |
| 68 | c_tag: 111 |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 69 | |
Matteo Scandolo | 7b1f308 | 2018-02-28 14:37:47 -0800 | [diff] [blame^] | 70 | # 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] | 71 | # Mom's PC: |
| 72 | # type: tosca.nodes.CORDUser |
| 73 | # properties: |
| 74 | # mac: 01:02:03:04:05:06 |
| 75 | # level: PG_13 |
| 76 | # requirements: |
| 77 | # - household: |
| 78 | # node: My House |
| 79 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 80 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 81 | # Dad's PC: |
| 82 | # type: tosca.nodes.CORDUser |
| 83 | # properties: |
| 84 | # mac: 90:E2:BA:82:F9:75 |
| 85 | # level: PG_13 |
| 86 | # requirements: |
| 87 | # - household: |
| 88 | # node: My House |
| 89 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 90 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 91 | # Jack's Laptop: |
| 92 | # type: tosca.nodes.CORDUser |
| 93 | # properties: |
| 94 | # mac: 68:5B:35:9D:91:D5 |
| 95 | # level: PG_13 |
| 96 | # requirements: |
| 97 | # - household: |
| 98 | # node: My House |
| 99 | # relationship: tosca.relationships.SubscriberDevice |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 100 | |
Matteo Scandolo | 55bb096 | 2017-12-20 16:06:19 -0800 | [diff] [blame] | 101 | # Jill's Laptop: |
| 102 | # type: tosca.nodes.CORDUser |
| 103 | # properties: |
| 104 | # mac: 34:36:3B:C9:B6:A6 |
| 105 | # level: PG_13 |
| 106 | # requirements: |
| 107 | # - household: |
| 108 | # node: My House |
| 109 | # relationship: tosca.relationships.SubscriberDevice |