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 | imports: |
| 22 | - custom_types/xos.yaml |
Scott Baker | 7f95bc3 | 2017-08-21 09:40:10 -0700 | [diff] [blame^] | 23 | - custom_types/addressmanager.yaml |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 24 | |
| 25 | description: public network config, generated by platform-install |
| 26 | |
| 27 | topology_template: |
| 28 | node_templates: |
| 29 | |
| 30 | # site, fully created in deployment.yaml |
| 31 | {{ site_name }}: |
| 32 | type: tosca.nodes.Site |
| 33 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 34 | |
Scott Baker | 7f95bc3 | 2017-08-21 09:40:10 -0700 | [diff] [blame^] | 35 | # Address Manager service, fully created in cord-service.yaml |
| 36 | service#addressmanager: |
| 37 | type: tosca.nodes.AddressManagerService |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 38 | |
| 39 | # public network |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 40 | |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 41 | public_template: |
| 42 | type: tosca.nodes.NetworkTemplate |
| 43 | properties: |
Andy Bavier | bcf0894 | 2017-02-01 15:24:21 -0500 | [diff] [blame] | 44 | visibility: public |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 45 | translation: none |
| 46 | vtn_kind: PUBLIC |
| 47 | |
| 48 | public: |
| 49 | type: tosca.nodes.network.Network |
| 50 | properties: |
| 51 | ip_version: 4 |
| 52 | requirements: |
| 53 | - network_template: |
| 54 | node: public_template |
| 55 | relationship: tosca.relationships.UsesNetworkTemplate |
| 56 | - owner: |
| 57 | node: {{ site_name }}_public |
| 58 | relationship: tosca.relationships.MemberOfSlice |
Scott Baker | 7f95bc3 | 2017-08-21 09:40:10 -0700 | [diff] [blame^] | 59 | - addressmanager_service_instance: |
| 60 | node: service#addressmanager |
Zack Williams | 682450e | 2016-11-19 09:04:41 -0700 | [diff] [blame] | 61 | relationship: tosca.relationships.TenantOfService |
| 62 | |
| 63 | |
| 64 | {{ site_name }}_public: |
| 65 | description: This slice exists solely to own the public network |
| 66 | type: tosca.nodes.Slice |
| 67 | properties: |
| 68 | network: noauto |
| 69 | requirements: |
| 70 | - site: |
| 71 | node: {{ site_name }} |
| 72 | relationship: tosca.relationships.MemberOfSite |
| 73 | |