Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 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 Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | description: Some basic fixtures |
| 20 | |
| 21 | imports: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 22 | - 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 Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 29 | |
| 30 | topology_template: |
| 31 | node_templates: |
| 32 | |
| 33 | xos: |
| 34 | type: tosca.nodes.XOS |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 35 | properties: |
| 36 | name: xos |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 37 | |
| 38 | # ----------------------------------------------------------------------------- |
| 39 | # Network Parameter Types |
| 40 | # ----------------------------------------------------------------------------- |
| 41 | |
| 42 | s_tag: |
| 43 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 44 | properties: |
| 45 | name: s_tag |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 46 | c_tag: |
| 47 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 48 | properties: |
| 49 | name: c_tag |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 50 | |
| 51 | next_hop: |
| 52 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 53 | properties: |
| 54 | name: next_hop |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 55 | |
| 56 | device: |
| 57 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 58 | properties: |
| 59 | name: device |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 60 | |
| 61 | bridge: |
| 62 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 63 | properties: |
| 64 | name: bridge |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 65 | |
| 66 | neutron_port_name: |
| 67 | type: tosca.nodes.NetworkParameterType |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 68 | properties: |
| 69 | name: neutron_port_name |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 70 | |
| 71 | # ---------------------------------------------------------------------------- |
| 72 | # Roles |
| 73 | # ---------------------------------------------------------------------------- |
| 74 | |
| 75 | siterole#admin: |
| 76 | type: tosca.nodes.SiteRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 77 | properties: |
| 78 | role: admin |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 79 | |
| 80 | siterole#pi: |
| 81 | type: tosca.nodes.SiteRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 82 | properties: |
| 83 | role: pi |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 84 | |
| 85 | siterole#tech: |
| 86 | type: tosca.nodes.SiteRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 87 | properties: |
| 88 | role: tech |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 89 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 90 | deploymentrole#admin: |
| 91 | type: tosca.nodes.DeploymentRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 92 | properties: |
| 93 | role: admin |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 94 | |
| 95 | slicerole#admin: |
| 96 | type: tosca.nodes.SliceRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 97 | properties: |
| 98 | role: admin |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 99 | |
| 100 | slicerole#access: |
| 101 | type: tosca.nodes.SliceRole |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 102 | properties: |
| 103 | role: access |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 104 | |
| 105 | # ----------------------------------------------------------------------------- |
| 106 | # Flavors |
| 107 | # ----------------------------------------------------------------------------- |
| 108 | |
| 109 | m1.small: |
| 110 | type: tosca.nodes.Flavor |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 111 | properties: |
| 112 | name: m1.small |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 113 | |
| 114 | m1.medium: |
| 115 | type: tosca.nodes.Flavor |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 116 | properties: |
| 117 | name: m1.medium |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 118 | |
| 119 | m1.large: |
| 120 | type: tosca.nodes.Flavor |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 121 | properties: |
| 122 | name: m1.large |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 123 | |
| 124 | m1.xlarge: |
| 125 | type: tosca.nodes.Flavor |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 126 | properties: |
| 127 | name: m1.xlarge |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 128 | |
| 129 | # ----------------------------------------------------------------------------- |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 130 | # Network Templates |
| 131 | # ----------------------------------------------------------------------------- |
| 132 | |
| 133 | Private: |
| 134 | type: tosca.nodes.NetworkTemplate |
| 135 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 136 | name: Private |
Zack Williams | 1396aa3 | 2017-06-06 10:28:29 -0700 | [diff] [blame] | 137 | visibility: private |
| 138 | translation: none |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 139 | |
| 140 | Public shared IPv4: |
| 141 | type: tosca.nodes.NetworkTemplate |
| 142 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 143 | name: Public shared IPv4 |
Zack Williams | 1396aa3 | 2017-06-06 10:28:29 -0700 | [diff] [blame] | 144 | visibility: private |
| 145 | translation: NAT |
| 146 | shared_network_name: nat-net |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 147 | |
| 148 | Public dedicated IPv4: |
| 149 | type: tosca.nodes.NetworkTemplate |
| 150 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 151 | name: Public dedicated IPv4 |
Zack Williams | 1396aa3 | 2017-06-06 10:28:29 -0700 | [diff] [blame] | 152 | visibility: public |
| 153 | translation: none |
| 154 | shared_network_name: ext-net |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 155 | |