blob: 0c2aeaa600a1682f17d995a15db55f8db08907a6 [file] [log] [blame]
Zack Williams4a830ed2018-01-18 09:55:27 -07001---
Andy Bavier01685f82017-12-21 14:06:54 -07002{#
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
Andy Bavier01685f82017-12-21 14:06:54 -070018tosca_definitions_version: tosca_simple_yaml_1_0
19
20imports:
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 Williams4a830ed2018-01-18 09:55:27 -070031description: public network config, generated by ecord profile
Andy Bavier01685f82017-12-21 14:06:54 -070032
33topology_template:
34 node_templates:
35
Zack Williams4a830ed2018-01-18 09:55:27 -070036# site, fully created in deployment.yaml.j2
Andy Bavier01685f82017-12-21 14:06:54 -070037 {{ site_name }}:
38 type: tosca.nodes.Site
39 properties:
40 name: {{ site_name }}
41 must-exist: true
42
Zack Williams4a830ed2018-01-18 09:55:27 -070043 {{ 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 Bavier01685f82017-12-21 14:06:54 -070053
Zack Williams4a830ed2018-01-18 09:55:27 -070054# Address Manager service, fully created in cord-services.yaml.j2
Andy Bavier01685f82017-12-21 14:06:54 -070055 service#addressmanager:
56 type: tosca.nodes.AddressManagerService
57 properties:
58 name: addressmanager
59 must-exist: true
60
61# public network
Andy Bavier01685f82017-12-21 14:06:54 -070062 public_template:
63 type: tosca.nodes.NetworkTemplate
64 properties:
Zack Williams4a830ed2018-01-18 09:55:27 -070065 name: public_template
66 visibility: public
67 translation: none
68 vtn_kind: PUBLIC
Andy Bavier01685f82017-12-21 14:06:54 -070069
70 public:
71 type: tosca.nodes.Network
72 properties:
Zack Williams4a830ed2018-01-18 09:55:27 -070073 name: public
74 permit_all_slices: true
75 subnet: {{ addresspool_public_cidr }}
76 # ip_version: 4
Andy Bavier01685f82017-12-21 14:06:54 -070077 requirements:
Zack Williams4a830ed2018-01-18 09:55:27 -070078 - template:
79 node: public_template
80 relationship: tosca.relationships.BelongsToOne
81 - owner:
82 node: {{ site_name }}_public
83 relationship: tosca.relationships.BelongsToOne
Andy Bavier01685f82017-12-21 14:06:54 -070084
Zack Williams4a830ed2018-01-18 09:55:27 -070085# Created in cord-services.yaml.j2
Andy Bavier01685f82017-12-21 14:06:54 -070086 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 Williams4a830ed2018-01-18 09:55:27 -070095 - owner:
96 node: service#addressmanager
97 relationship: tosca.relationships.BelongsToOne
98 - address_pool:
99 node: addresses_public
100 relationship: tosca.relationships.BelongsToOne
Andy Bavier01685f82017-12-21 14:06:54 -0700101 properties:
Zack Williams4a830ed2018-01-18 09:55:27 -0700102 name: AM_public_net
Andy Bavier01685f82017-12-21 14:06:54 -0700103
104 public_to_address_manager:
Zack Williams4a830ed2018-01-18 09:55:27 -0700105 type: tosca.nodes.ServiceInstanceLink
Andy Bavier01685f82017-12-21 14:06:54 -0700106 requirements:
Zack Williams4a830ed2018-01-18 09:55:27 -0700107 - provider_service_instance:
108 node: AddressManagerServiceInstancePublicNetwork
109 relationship: tosca.relationships.BelongsToOne
110 - subscriber_network:
111 node: public
112 relationship: tosca.relationships.BelongsToOne
Andy Bavier01685f82017-12-21 14:06:54 -0700113