blob: 4dcda540c6f2c23b41f83e2127a91f702521f0a3 [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/deploymentrole.yaml
23 - custom_types/flavor.yaml
24 - custom_types/siterole.yaml
25 - custom_types/slicerole.yaml
26 - custom_types/networkparametertype.yaml
27 - custom_types/networktemplate.yaml
28 - custom_types/xos.yaml
Zack Williamsa2763112017-01-03 11:38:38 -070029
30topology_template:
31 node_templates:
32
33 xos:
34 type: tosca.nodes.XOS
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080035 properties:
36 name: xos
Zack Williamsa2763112017-01-03 11:38:38 -070037
38# -----------------------------------------------------------------------------
39# Network Parameter Types
40# -----------------------------------------------------------------------------
41
42 s_tag:
43 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080044 properties:
45 name: s_tag
Zack Williamsa2763112017-01-03 11:38:38 -070046 c_tag:
47 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080048 properties:
49 name: c_tag
Zack Williamsa2763112017-01-03 11:38:38 -070050
51 next_hop:
52 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080053 properties:
54 name: next_hop
Zack Williamsa2763112017-01-03 11:38:38 -070055
56 device:
57 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080058 properties:
59 name: device
Zack Williamsa2763112017-01-03 11:38:38 -070060
61 bridge:
62 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080063 properties:
64 name: bridge
Zack Williamsa2763112017-01-03 11:38:38 -070065
66 neutron_port_name:
67 type: tosca.nodes.NetworkParameterType
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080068 properties:
69 name: neutron_port_name
Zack Williamsa2763112017-01-03 11:38:38 -070070
71# ----------------------------------------------------------------------------
72# Roles
73# ----------------------------------------------------------------------------
74
75 siterole#admin:
76 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080077 properties:
78 role: admin
Zack Williamsa2763112017-01-03 11:38:38 -070079
80 siterole#pi:
81 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080082 properties:
83 role: pi
Zack Williamsa2763112017-01-03 11:38:38 -070084
85 siterole#tech:
86 type: tosca.nodes.SiteRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080087 properties:
88 role: tech
Zack Williamsa2763112017-01-03 11:38:38 -070089
Zack Williamsa2763112017-01-03 11:38:38 -070090 deploymentrole#admin:
91 type: tosca.nodes.DeploymentRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080092 properties:
93 role: admin
Zack Williamsa2763112017-01-03 11:38:38 -070094
95 slicerole#admin:
96 type: tosca.nodes.SliceRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080097 properties:
98 role: admin
Zack Williamsa2763112017-01-03 11:38:38 -070099
100 slicerole#access:
101 type: tosca.nodes.SliceRole
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800102 properties:
103 role: access
Zack Williamsa2763112017-01-03 11:38:38 -0700104
105# -----------------------------------------------------------------------------
106# Flavors
107# -----------------------------------------------------------------------------
108
109 m1.small:
110 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800111 properties:
112 name: m1.small
Zack Williamsa2763112017-01-03 11:38:38 -0700113
114 m1.medium:
115 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800116 properties:
117 name: m1.medium
Zack Williamsa2763112017-01-03 11:38:38 -0700118
119 m1.large:
120 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800121 properties:
122 name: m1.large
Zack Williamsa2763112017-01-03 11:38:38 -0700123
124 m1.xlarge:
125 type: tosca.nodes.Flavor
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800126 properties:
127 name: m1.xlarge
Zack Williamsa2763112017-01-03 11:38:38 -0700128
129# -----------------------------------------------------------------------------
Zack Williamsa2763112017-01-03 11:38:38 -0700130# Network Templates
131# -----------------------------------------------------------------------------
132
133 Private:
134 type: tosca.nodes.NetworkTemplate
135 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800136 name: Private
Zack Williams1396aa32017-06-06 10:28:29 -0700137 visibility: private
138 translation: none
Zack Williamsa2763112017-01-03 11:38:38 -0700139
140 Public shared IPv4:
141 type: tosca.nodes.NetworkTemplate
142 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800143 name: Public shared IPv4
Zack Williams1396aa32017-06-06 10:28:29 -0700144 visibility: private
145 translation: NAT
146 shared_network_name: nat-net
Zack Williamsa2763112017-01-03 11:38:38 -0700147
148 Public dedicated IPv4:
149 type: tosca.nodes.NetworkTemplate
150 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -0800151 name: Public dedicated IPv4
Zack Williams1396aa32017-06-06 10:28:29 -0700152 visibility: public
153 translation: none
154 shared_network_name: ext-net
Zack Williamsa2763112017-01-03 11:38:38 -0700155