Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # Copyright 2018-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 | # Default values for the container-vnf profile. |
| 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | |
| 20 | replicaCount: 1 |
| 21 | |
| 22 | nameOverride: "" |
| 23 | fullnameOverride: "" |
| 24 | |
| 25 | imagePullPolicy: 'IfNotPresent' |
| 26 | |
| 27 | rcord_synchronizerImage: "xosproject/rcord-synchronizer:master" |
| 28 | httpieImage: "clue/httpie:latest" |
| 29 | |
| 30 | xosAdminUser: "admin@opencord.org" |
| 31 | xosAdminPassword: "letmein" |
| 32 | |
| 33 | # TOSCA recipes for the tosca-loader |
| 34 | toscaRecipes: |
| 35 | fixtures: |
| 36 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 37 | description: Some basic fixtures |
| 38 | imports: |
| 39 | - custom_types/siterole.yaml |
| 40 | - custom_types/slicerole.yaml |
| 41 | - custom_types/networkparametertype.yaml |
| 42 | - custom_types/networktemplate.yaml |
| 43 | topology_template: |
| 44 | node_templates: |
| 45 | # ----------------------------------------------------------------------------- |
| 46 | # Network Parameter Types |
| 47 | # ----------------------------------------------------------------------------- |
| 48 | s_tag: |
| 49 | type: tosca.nodes.NetworkParameterType |
| 50 | properties: |
| 51 | name: s_tag |
| 52 | c_tag: |
| 53 | type: tosca.nodes.NetworkParameterType |
| 54 | properties: |
| 55 | name: c_tag |
| 56 | next_hop: |
| 57 | type: tosca.nodes.NetworkParameterType |
| 58 | properties: |
| 59 | name: next_hop |
| 60 | device: |
| 61 | type: tosca.nodes.NetworkParameterType |
| 62 | properties: |
| 63 | name: device |
| 64 | bridge: |
| 65 | type: tosca.nodes.NetworkParameterType |
| 66 | properties: |
| 67 | name: bridge |
| 68 | neutron_port_name: |
| 69 | type: tosca.nodes.NetworkParameterType |
| 70 | properties: |
| 71 | name: neutron_port_name |
| 72 | # ---------------------------------------------------------------------------- |
| 73 | # Roles |
| 74 | # ---------------------------------------------------------------------------- |
| 75 | siterole#admin: |
| 76 | type: tosca.nodes.SiteRole |
| 77 | properties: |
| 78 | role: admin |
| 79 | siterole#pi: |
| 80 | type: tosca.nodes.SiteRole |
| 81 | properties: |
| 82 | role: pi |
| 83 | siterole#tech: |
| 84 | type: tosca.nodes.SiteRole |
| 85 | properties: |
| 86 | role: tech |
| 87 | slicerole#admin: |
| 88 | type: tosca.nodes.SliceRole |
| 89 | properties: |
| 90 | role: admin |
| 91 | slicerole#access: |
| 92 | type: tosca.nodes.SliceRole |
| 93 | properties: |
| 94 | role: access |
| 95 | # ----------------------------------------------------------------------------- |
| 96 | # Network Templates |
| 97 | # ----------------------------------------------------------------------------- |
| 98 | Private: |
| 99 | type: tosca.nodes.NetworkTemplate |
| 100 | properties: |
| 101 | name: Private |
| 102 | visibility: private |
| 103 | translation: none |
| 104 | Public shared IPv4: |
| 105 | type: tosca.nodes.NetworkTemplate |
| 106 | properties: |
| 107 | name: Public shared IPv4 |
| 108 | visibility: private |
| 109 | translation: NAT |
| 110 | shared_network_name: nat-net |
| 111 | Public dedicated IPv4: |
| 112 | type: tosca.nodes.NetworkTemplate |
| 113 | properties: |
| 114 | name: Public dedicated IPv4 |
| 115 | visibility: public |
| 116 | translation: none |
| 117 | shared_network_name: ext-net |
| 118 | |
| 119 | deployment: |
| 120 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 121 | imports: |
| 122 | - custom_types/deployment.yaml |
| 123 | description: deployment config, generated by platform-install |
| 124 | topology_template: |
| 125 | node_templates: |
| 126 | MyDeployment: |
| 127 | type: tosca.nodes.Deployment |
| 128 | properties: |
| 129 | name: MyDeployment |
| 130 | |
| 131 | fabricService: |
| 132 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 133 | imports: |
| 134 | - custom_types/fabricservice.yaml |
| 135 | - custom_types/onosapp.yaml |
| 136 | - custom_types/onosservice.yaml |
| 137 | - custom_types/serviceattribute.yaml |
| 138 | - custom_types/servicedependency.yaml |
| 139 | - custom_types/serviceinstancelink.yaml |
| 140 | description: fabric services, generated by rcord profile |
| 141 | topology_template: |
| 142 | node_templates: |
| 143 | service#ONOS_Fabric: |
| 144 | type: tosca.nodes.ONOSService |
| 145 | properties: |
| 146 | name: ONOS_Fabric |
| 147 | kind: platform |
| 148 | no_container: true |
| 149 | rest_hostname: onos-fabric-ui |
| 150 | rest_port: 8181 |
| 151 | service#fabric: |
| 152 | type: tosca.nodes.FabricService |
| 153 | properties: |
| 154 | name: fabric |
| 155 | kind: platform |
| 156 | Fabric_ONOS_app: |
| 157 | type: tosca.nodes.ONOSApp |
| 158 | requirements: |
| 159 | - owner: |
| 160 | node: service#ONOS_Fabric |
| 161 | relationship: tosca.relationships.BelongsToOne |
| 162 | properties: |
| 163 | name: Fabric_ONOS_app |
| 164 | dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting, org.onosproject.vrouter |
| 165 | service_dependency#onos-fabric_fabric: |
| 166 | type: tosca.nodes.ServiceDependency |
| 167 | properties: |
| 168 | connect_method: None |
| 169 | requirements: |
| 170 | - subscriber_service: |
| 171 | node: service#ONOS_Fabric |
| 172 | relationship: tosca.relationships.BelongsToOne |
| 173 | - provider_service: |
| 174 | node: service#fabric |
| 175 | relationship: tosca.relationships.BelongsToOne |
| 176 | |
| 177 | cordServices: |
| 178 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 179 | description: Set up VOLT, AddressManager, and RCORD services |
| 180 | imports: |
| 181 | - custom_types/simpleexampleservice.yaml |
| 182 | - custom_types/fabricservice.yaml |
| 183 | - custom_types/image.yaml |
| 184 | - custom_types/kubernetesservice.yaml |
| 185 | - custom_types/network.yaml |
| 186 | - custom_types/networkslice.yaml |
| 187 | - custom_types/networktemplate.yaml |
| 188 | - custom_types/nodelabel.yaml |
| 189 | - custom_types/onosapp.yaml |
| 190 | - custom_types/onosservice.yaml |
| 191 | - custom_types/site.yaml |
| 192 | - custom_types/service.yaml |
| 193 | - custom_types/servicedependency.yaml |
| 194 | - custom_types/serviceinstanceattribute.yaml |
| 195 | - custom_types/serviceinstancelink.yaml |
| 196 | - custom_types/slice.yaml |
| 197 | - custom_types/voltservice.yaml |
| 198 | - custom_types/vrouterservice.yaml |
| 199 | - custom_types/vsghwservice.yaml |
| 200 | - custom_types/trustdomain.yaml |
| 201 | topology_template: |
| 202 | node_templates: |
| 203 | default_trustdomain: |
| 204 | type: tosca.nodes.TrustDomain |
| 205 | properties: |
| 206 | name: "default" |
| 207 | requirements: |
| 208 | - owner: |
| 209 | node: service#kubernetes |
| 210 | relationship: tosca.relationships.BelongsToOne |
| 211 | service#ONOS_Fabric: |
| 212 | type: tosca.nodes.ONOSService |
| 213 | properties: |
| 214 | name: ONOS_Fabric |
| 215 | must-exist: true |
| 216 | service#fabric: |
| 217 | type: tosca.nodes.FabricService |
| 218 | properties: |
| 219 | name: fabric |
| 220 | must-exist: true |
| 221 | service#rcord: |
| 222 | type: tosca.nodes.Service |
| 223 | properties: |
| 224 | name: rcord |
| 225 | rcord_volt: |
| 226 | type: tosca.nodes.ServiceDependency |
| 227 | properties: |
| 228 | connect_method: None |
| 229 | requirements: |
| 230 | - subscriber_service: |
| 231 | node: service#rcord |
| 232 | relationship: tosca.relationships.BelongsToOne |
| 233 | - provider_service: |
| 234 | node: service#volt |
| 235 | relationship: tosca.relationships.BelongsToOne |
| 236 | service#kubernetes: |
| 237 | type: tosca.nodes.KubernetesService |
| 238 | properties: |
| 239 | name: kubernetes |
| 240 | service#volt: |
| 241 | type: tosca.nodes.VOLTService |
| 242 | properties: |
| 243 | name: volt |
| 244 | voltha_url: voltha.voltha.svc.cluster.local:8882 |
| 245 | p_onos_url: onos-voltha-ui.voltha.svc.cluster.local:8181 |
| 246 | p_onos_user: karaf |
| 247 | p_onos_pass: karaf |
| 248 | service#vsg-hw: |
| 249 | type: tosca.nodes.VSGHWService |
| 250 | properties: |
| 251 | name: vsg-hw |
| 252 | service#vrouter: |
| 253 | type: tosca.nodes.VRouterService |
| 254 | properties: |
| 255 | name: vrouter |
| 256 | kind: rcord |
| 257 | service_dependency#fabric_vrouter: |
| 258 | type: tosca.nodes.ServiceDependency |
| 259 | properties: |
| 260 | connect_method: None |
| 261 | requirements: |
| 262 | - subscriber_service: |
| 263 | node: service#fabric |
| 264 | relationship: tosca.relationships.BelongsToOne |
| 265 | - provider_service: |
| 266 | node: service#vrouter |
| 267 | relationship: tosca.relationships.BelongsToOne |
| 268 | volt_vsg-hw: |
| 269 | type: tosca.nodes.ServiceDependency |
| 270 | properties: |
| 271 | connect_method: None |
| 272 | requirements: |
| 273 | - subscriber_service: |
| 274 | node: service#volt |
| 275 | relationship: tosca.relationships.BelongsToOne |
| 276 | - provider_service: |
| 277 | node: service#vsg-hw |
| 278 | relationship: tosca.relationships.BelongsToOne |
| 279 | onos_fabric_vsg-hw: |
| 280 | type: tosca.nodes.ServiceDependency |
| 281 | properties: |
| 282 | connect_method: None |
| 283 | requirements: |
| 284 | - subscriber_service: |
| 285 | node: service#vsg-hw |
| 286 | relationship: tosca.relationships.BelongsToOne |
| 287 | - provider_service: |
| 288 | node: service#ONOS_Fabric |
| 289 | relationship: tosca.relationships.BelongsToOne |
| 290 | httpd_image: |
| 291 | type: tosca.nodes.Image |
| 292 | properties: |
| 293 | name: "httpd" |
| 294 | tag: "2.4" |
| 295 | service#simpleexampleservice: |
| 296 | type: tosca.nodes.SimpleExampleService |
| 297 | properties: |
| 298 | name: simpleexampleservice |
| 299 | service_message: hello |
| 300 | mysite: |
| 301 | type: tosca.nodes.Site |
| 302 | properties: |
| 303 | name: "mysite" |
| 304 | must-exist: true |
| 305 | simpleexampleservice_slice: |
| 306 | type: tosca.nodes.Slice |
| 307 | properties: |
| 308 | name: "mysite_simpleexampleservice" |
| 309 | requirements: |
| 310 | - site: |
| 311 | node: mysite |
| 312 | relationship: tosca.relationships.BelongsToOne |
| 313 | - trust_domain: |
| 314 | node: default_trustdomain |
| 315 | relationship: tosca.relationships.BelongsToOne |
| 316 | - default_image: |
| 317 | node: httpd_image |
| 318 | relationship: tosca.relationships.BelongsToOne |
| 319 | - service: |
| 320 | node: service#simpleexampleservice |
| 321 | relationship: tosca.relationships.BelongsToOne |
| 322 | |
| 323 | serviceGraphConstraints: |
| 324 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 325 | imports: |
| 326 | - custom_types/servicegraphconstraint.yaml |
| 327 | description: Constraints on the Services position in the graph |
| 328 | topology_template: |
| 329 | node_templates: |
| 330 | constraints: |
| 331 | type: tosca.nodes.ServiceGraphConstraint |
| 332 | properties: |
| 333 | constraints: '[[null, "rcord"], [null, "volt"], ["ONOS_Fabric", "vsg-hw"], ["fabric", null], ["vrouter", null]]' |