blob: 610c58bf5b280b26a0189c852b9baa5862ad6a0f [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Zack Williams682450e2016-11-19 09:04:41 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21imports:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080022 - custom_types/addresspool.yaml
23 - custom_types/addressmanagerservice.yaml
24 - custom_types/addressmanagerserviceinstance.yaml
25 - custom_types/network.yaml
26 - custom_types/networktemplate.yaml
27 - custom_types/serviceinstance.yaml
28 - custom_types/serviceinstancelink.yaml
29 - custom_types/site.yaml
30 - custom_types/slice.yaml
Zack Williams682450e2016-11-19 09:04:41 -070031
32description: public network config, generated by platform-install
33
34topology_template:
35 node_templates:
36
37# site, fully created in deployment.yaml
38 {{ site_name }}:
39 type: tosca.nodes.Site
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080040 properties:
41 name: {{ site_name }}
42 must-exist: true
43
Zack Williams682450e2016-11-19 09:04:41 -070044
Zack Williamsa2763112017-01-03 11:38:38 -070045
Scott Baker7f95bc32017-08-21 09:40:10 -070046# Address Manager service, fully created in cord-service.yaml
47 service#addressmanager:
48 type: tosca.nodes.AddressManagerService
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080049 properties:
50 name: addressmanager
51 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070052
53# public network
Zack Williamsa2763112017-01-03 11:38:38 -070054
Zack Williams682450e2016-11-19 09:04:41 -070055 public_template:
56 type: tosca.nodes.NetworkTemplate
57 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080058 name: public_template
Andy Bavierbcf08942017-02-01 15:24:21 -050059 visibility: public
Zack Williams682450e2016-11-19 09:04:41 -070060 translation: none
61 vtn_kind: PUBLIC
62
63 public:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080064 type: tosca.nodes.Network
Zack Williams682450e2016-11-19 09:04:41 -070065 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080066 name: public
67 permit_all_slices: true
68 subnet: 10.8.1.0/24 # NOTE same as AddressPool#addresses_public
69 # ip_version: 4
Zack Williams682450e2016-11-19 09:04:41 -070070 requirements:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080071 - template:
Zack Williams682450e2016-11-19 09:04:41 -070072 node: public_template
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080073 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -070074 - owner:
75 node: {{ site_name }}_public
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080076 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -070077
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080078 # Created in cord-services.yaml.j2
79 addresses_public:
80 type: tosca.nodes.AddressPool
81 properties:
82 name: addresses_public
83 must-exist: true
84
85 AddressManagerServiceInstancePublicNetwork:
86 type: tosca.nodes.AddressManagerServiceInstance
87 requirements:
88 - owner:
89 node: service#addressmanager
90 relationship: tosca.relationships.BelongsToOne
91 - address_pool:
92 node: addresses_public
93 relationship: tosca.relationships.BelongsToOne
94 properties:
95 name: AM_public_net
96
97 public_to_address_manager:
98 type: tosca.nodes.ServiceInstanceLink
99 requirements:
100 - provider_service_instance:
101 node: AddressManagerServiceInstancePublicNetwork
102 relationship: tosca.relationships.BelongsToOne
103 - subscriber_network:
104 node: public
105 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -0700106
107 {{ site_name }}_public:
108 description: This slice exists solely to own the public network
109 type: tosca.nodes.Slice
110 properties:
111 network: noauto
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800112 name: {{ site_name }}_public
Zack Williams682450e2016-11-19 09:04:41 -0700113 requirements:
114 - site:
115 node: {{ site_name }}
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800116 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -0700117