blob: e4f863fbeafe0ec1995ee34d7c383cae0db1d8a3 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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
Zack Williamsa2763112017-01-03 11:38:38 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19description: Some basic fixtures
20
21imports:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080022 - custom_types/flavor.yaml
23 - custom_types/siterole.yaml
24 - custom_types/slicerole.yaml
25 - custom_types/networkparametertype.yaml
26 - custom_types/networktemplate.yaml
Zack Williamsa2763112017-01-03 11:38:38 -070027
28topology_template:
29 node_templates:
30
Zack Williamsa2763112017-01-03 11:38:38 -070031# -----------------------------------------------------------------------------
32# Network Parameter Types
33# -----------------------------------------------------------------------------
34
35 s_tag:
36 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080037 properties:
38 name: s_tag
Zack Williamsa2763112017-01-03 11:38:38 -070039 c_tag:
40 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080041 properties:
42 name: c_tag
Zack Williamsa2763112017-01-03 11:38:38 -070043
44 next_hop:
45 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080046 properties:
47 name: next_hop
Zack Williamsa2763112017-01-03 11:38:38 -070048
49 device:
50 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080051 properties:
52 name: device
Zack Williamsa2763112017-01-03 11:38:38 -070053
54 bridge:
55 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080056 properties:
57 name: bridge
Zack Williamsa2763112017-01-03 11:38:38 -070058
59 neutron_port_name:
60 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080061 properties:
62 name: neutron_port_name
Zack Williamsa2763112017-01-03 11:38:38 -070063
64# ----------------------------------------------------------------------------
65# Roles
66# ----------------------------------------------------------------------------
67
68 siterole#admin:
69 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080070 properties:
71 role: admin
Zack Williamsa2763112017-01-03 11:38:38 -070072
73 siterole#pi:
74 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080075 properties:
76 role: pi
Zack Williamsa2763112017-01-03 11:38:38 -070077
78 siterole#tech:
79 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080080 properties:
81 role: tech
Zack Williamsa2763112017-01-03 11:38:38 -070082
Zack Williamsa2763112017-01-03 11:38:38 -070083 slicerole#admin:
84 type: tosca.nodes.SliceRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080085 properties:
86 role: admin
Zack Williamsa2763112017-01-03 11:38:38 -070087
88 slicerole#access:
89 type: tosca.nodes.SliceRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080090 properties:
91 role: access
Zack Williamsa2763112017-01-03 11:38:38 -070092
93# -----------------------------------------------------------------------------
94# Flavors
95# -----------------------------------------------------------------------------
96
97 m1.small:
98 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080099 properties:
100 name: m1.small
Zack Williamsa2763112017-01-03 11:38:38 -0700101
102 m1.medium:
103 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800104 properties:
105 name: m1.medium
Zack Williamsa2763112017-01-03 11:38:38 -0700106
107 m1.large:
108 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800109 properties:
110 name: m1.large
Zack Williamsa2763112017-01-03 11:38:38 -0700111
112 m1.xlarge:
113 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800114 properties:
115 name: m1.xlarge
Zack Williamsa2763112017-01-03 11:38:38 -0700116
117# -----------------------------------------------------------------------------
Zack Williamsa2763112017-01-03 11:38:38 -0700118# Network Templates
119# -----------------------------------------------------------------------------
120
121 Private:
122 type: tosca.nodes.NetworkTemplate
123 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800124 name: Private
Zack Williams1396aa32017-06-06 10:28:29 -0700125 visibility: private
126 translation: none
Zack Williamsa2763112017-01-03 11:38:38 -0700127
128 Public shared IPv4:
129 type: tosca.nodes.NetworkTemplate
130 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800131 name: Public shared IPv4
Zack Williams1396aa32017-06-06 10:28:29 -0700132 visibility: private
133 translation: NAT
134 shared_network_name: nat-net
Zack Williamsa2763112017-01-03 11:38:38 -0700135
136 Public dedicated IPv4:
137 type: tosca.nodes.NetworkTemplate
138 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800139 name: Public dedicated IPv4
Zack Williams1396aa32017-06-06 10:28:29 -0700140 visibility: public
141 translation: none
142 shared_network_name: ext-net
Zack Williamsa2763112017-01-03 11:38:38 -0700143