Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 1 | {# |
| 2 | Copyright 2017-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | #} |
| 16 | |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | imports: |
| 20 | - custom_types/addresspool.yaml |
| 21 | - custom_types/addressmanagerservice.yaml |
| 22 | - custom_types/addressmanagerserviceinstance.yaml |
| 23 | - custom_types/network.yaml |
| 24 | - custom_types/networktemplate.yaml |
| 25 | - custom_types/serviceinstance.yaml |
| 26 | - custom_types/serviceinstancelink.yaml |
| 27 | - custom_types/site.yaml |
| 28 | - custom_types/slice.yaml |
| 29 | |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 30 | description: public network config, generated by rcord profile |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 31 | |
| 32 | topology_template: |
| 33 | node_templates: |
| 34 | |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 35 | # site, fully created in deployment.yaml.j2 |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 36 | {{ site_name }}: |
| 37 | type: tosca.nodes.Site |
| 38 | properties: |
| 39 | name: {{ site_name }} |
| 40 | must-exist: true |
| 41 | |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 42 | {{ site_name }}_public: |
| 43 | description: This slice exists solely to own the public network |
| 44 | type: tosca.nodes.Slice |
| 45 | properties: |
| 46 | network: noauto |
| 47 | name: {{ site_name }}_public |
| 48 | requirements: |
| 49 | - site: |
| 50 | node: {{ site_name }} |
| 51 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 52 | |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 53 | # Address Manager service, fully created in cord-services.yaml.j2 |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 54 | service#addressmanager: |
| 55 | type: tosca.nodes.AddressManagerService |
| 56 | properties: |
| 57 | name: addressmanager |
| 58 | must-exist: true |
| 59 | |
| 60 | # public network |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 61 | public_template: |
| 62 | type: tosca.nodes.NetworkTemplate |
| 63 | properties: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 64 | name: public_template |
| 65 | visibility: public |
| 66 | translation: none |
| 67 | vtn_kind: PUBLIC |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 68 | |
| 69 | public: |
| 70 | type: tosca.nodes.Network |
| 71 | properties: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 72 | name: public |
| 73 | permit_all_slices: true |
| 74 | subnet: {{ addresspool_public_cidr }} |
| 75 | # ip_version: 4 |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 76 | requirements: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 77 | - template: |
| 78 | node: public_template |
| 79 | relationship: tosca.relationships.BelongsToOne |
| 80 | - owner: |
| 81 | node: {{ site_name }}_public |
| 82 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 83 | |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 84 | # Created in cord-services.yaml.j2 |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 85 | addresses_public: |
| 86 | type: tosca.nodes.AddressPool |
| 87 | properties: |
| 88 | name: addresses_public |
| 89 | must-exist: true |
| 90 | |
| 91 | AddressManagerServiceInstancePublicNetwork: |
| 92 | type: tosca.nodes.AddressManagerServiceInstance |
| 93 | requirements: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 94 | - owner: |
| 95 | node: service#addressmanager |
| 96 | relationship: tosca.relationships.BelongsToOne |
| 97 | - address_pool: |
| 98 | node: addresses_public |
| 99 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 100 | properties: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 101 | name: AM_public_net |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 102 | |
| 103 | public_to_address_manager: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 104 | type: tosca.nodes.ServiceInstanceLink |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 105 | requirements: |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 106 | - provider_service_instance: |
| 107 | node: AddressManagerServiceInstancePublicNetwork |
| 108 | relationship: tosca.relationships.BelongsToOne |
| 109 | - subscriber_network: |
| 110 | node: public |
| 111 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 112 | |