Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 1 | --- |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 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 | |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 18 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 19 | |
| 20 | imports: |
| 21 | - custom_types/addresspool.yaml |
| 22 | - custom_types/addressmanagerservice.yaml |
| 23 | - custom_types/addressmanagerserviceinstance.yaml |
| 24 | - custom_types/network.yaml |
| 25 | - custom_types/networktemplate.yaml |
| 26 | - custom_types/serviceinstance.yaml |
| 27 | - custom_types/serviceinstancelink.yaml |
| 28 | - custom_types/site.yaml |
| 29 | - custom_types/slice.yaml |
| 30 | |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 31 | description: public network config, generated by ecord profile |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 32 | |
| 33 | topology_template: |
| 34 | node_templates: |
| 35 | |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 36 | # site, fully created in deployment.yaml.j2 |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 37 | {{ site_name }}: |
| 38 | type: tosca.nodes.Site |
| 39 | properties: |
| 40 | name: {{ site_name }} |
| 41 | must-exist: true |
| 42 | |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 43 | {{ site_name }}_public: |
| 44 | description: This slice exists solely to own the public network |
| 45 | type: tosca.nodes.Slice |
| 46 | properties: |
| 47 | network: noauto |
| 48 | name: {{ site_name }}_public |
| 49 | requirements: |
| 50 | - site: |
| 51 | node: {{ site_name }} |
| 52 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 53 | |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 54 | # Address Manager service, fully created in cord-services.yaml.j2 |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 55 | service#addressmanager: |
| 56 | type: tosca.nodes.AddressManagerService |
| 57 | properties: |
| 58 | name: addressmanager |
| 59 | must-exist: true |
| 60 | |
| 61 | # public network |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 62 | public_template: |
| 63 | type: tosca.nodes.NetworkTemplate |
| 64 | properties: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 65 | name: public_template |
| 66 | visibility: public |
| 67 | translation: none |
| 68 | vtn_kind: PUBLIC |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 69 | |
| 70 | public: |
| 71 | type: tosca.nodes.Network |
| 72 | properties: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 73 | name: public |
| 74 | permit_all_slices: true |
| 75 | subnet: {{ addresspool_public_cidr }} |
| 76 | # ip_version: 4 |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 77 | requirements: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 78 | - template: |
| 79 | node: public_template |
| 80 | relationship: tosca.relationships.BelongsToOne |
| 81 | - owner: |
| 82 | node: {{ site_name }}_public |
| 83 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 84 | |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 85 | # Created in cord-services.yaml.j2 |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 86 | addresses_public: |
| 87 | type: tosca.nodes.AddressPool |
| 88 | properties: |
| 89 | name: addresses_public |
| 90 | must-exist: true |
| 91 | |
| 92 | AddressManagerServiceInstancePublicNetwork: |
| 93 | type: tosca.nodes.AddressManagerServiceInstance |
| 94 | requirements: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 95 | - owner: |
| 96 | node: service#addressmanager |
| 97 | relationship: tosca.relationships.BelongsToOne |
| 98 | - address_pool: |
| 99 | node: addresses_public |
| 100 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 101 | properties: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 102 | name: AM_public_net |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 103 | |
| 104 | public_to_address_manager: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 105 | type: tosca.nodes.ServiceInstanceLink |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 106 | requirements: |
Zack Williams | 4a830ed | 2018-01-18 09:55:27 -0700 | [diff] [blame] | 107 | - provider_service_instance: |
| 108 | node: AddressManagerServiceInstancePublicNetwork |
| 109 | relationship: tosca.relationships.BelongsToOne |
| 110 | - subscriber_network: |
| 111 | node: public |
| 112 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 01685f8 | 2017-12-21 14:06:54 -0700 | [diff] [blame] | 113 | |