blob: cc30e71f117cea546383162e9aa809e8d12f298e [file] [log] [blame]
Andy Bavier3ade4a52017-12-20 10:40:16 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15#}
16
Andy Bavier3ade4a52017-12-20 10:40:16 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19imports:
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 Williams2da41af2018-01-10 17:48:23 -070030description: public network config, generated by rcord profile
Andy Bavier3ade4a52017-12-20 10:40:16 -070031
32topology_template:
33 node_templates:
34
Zack Williams2da41af2018-01-10 17:48:23 -070035# site, fully created in deployment.yaml.j2
Andy Bavier3ade4a52017-12-20 10:40:16 -070036 {{ site_name }}:
37 type: tosca.nodes.Site
38 properties:
39 name: {{ site_name }}
40 must-exist: true
41
Zack Williams2da41af2018-01-10 17:48:23 -070042 {{ 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 Bavier3ade4a52017-12-20 10:40:16 -070052
Zack Williams2da41af2018-01-10 17:48:23 -070053# Address Manager service, fully created in cord-services.yaml.j2
Andy Bavier3ade4a52017-12-20 10:40:16 -070054 service#addressmanager:
55 type: tosca.nodes.AddressManagerService
56 properties:
57 name: addressmanager
58 must-exist: true
59
60# public network
Andy Bavier3ade4a52017-12-20 10:40:16 -070061 public_template:
62 type: tosca.nodes.NetworkTemplate
63 properties:
Zack Williams2da41af2018-01-10 17:48:23 -070064 name: public_template
65 visibility: public
66 translation: none
67 vtn_kind: PUBLIC
Andy Bavier3ade4a52017-12-20 10:40:16 -070068
69 public:
70 type: tosca.nodes.Network
71 properties:
Zack Williams2da41af2018-01-10 17:48:23 -070072 name: public
73 permit_all_slices: true
74 subnet: {{ addresspool_public_cidr }}
75 # ip_version: 4
Andy Bavier3ade4a52017-12-20 10:40:16 -070076 requirements:
Zack Williams2da41af2018-01-10 17:48:23 -070077 - template:
78 node: public_template
79 relationship: tosca.relationships.BelongsToOne
80 - owner:
81 node: {{ site_name }}_public
82 relationship: tosca.relationships.BelongsToOne
Andy Bavier3ade4a52017-12-20 10:40:16 -070083
Zack Williams2da41af2018-01-10 17:48:23 -070084# Created in cord-services.yaml.j2
Andy Bavier3ade4a52017-12-20 10:40:16 -070085 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 Williams2da41af2018-01-10 17:48:23 -070094 - owner:
95 node: service#addressmanager
96 relationship: tosca.relationships.BelongsToOne
97 - address_pool:
98 node: addresses_public
99 relationship: tosca.relationships.BelongsToOne
Andy Bavier3ade4a52017-12-20 10:40:16 -0700100 properties:
Zack Williams2da41af2018-01-10 17:48:23 -0700101 name: AM_public_net
Andy Bavier3ade4a52017-12-20 10:40:16 -0700102
103 public_to_address_manager:
Zack Williams2da41af2018-01-10 17:48:23 -0700104 type: tosca.nodes.ServiceInstanceLink
Andy Bavier3ade4a52017-12-20 10:40:16 -0700105 requirements:
Zack Williams2da41af2018-01-10 17:48:23 -0700106 - provider_service_instance:
107 node: AddressManagerServiceInstancePublicNetwork
108 relationship: tosca.relationships.BelongsToOne
109 - subscriber_network:
110 node: public
111 relationship: tosca.relationships.BelongsToOne
Andy Bavier3ade4a52017-12-20 10:40:16 -0700112