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