Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -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 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @oss-service.yaml http://10.90.0.101:30007/run |
| 17 | |
| 18 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 19 | imports: |
| 20 | - custom_types/servicedependency.yaml |
| 21 | - custom_types/voltservice.yaml |
| 22 | - custom_types/attworkflowdriverwhitelistentry.yaml |
| 23 | - custom_types/attworkflowdriverservice.yaml |
| 24 | description: Create an instance of the OSS Service and connect it to the vOLT Service |
Sreeju | 7d7fc07 | 2019-06-13 12:03:00 -0600 | [diff] [blame] | 25 | |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 26 | topology_template: |
| 27 | node_templates: |
| 28 | |
| 29 | service#att: |
| 30 | type: tosca.nodes.AttWorkflowDriverService |
| 31 | properties: |
| 32 | name: att-workflow-driver |
| 33 | must-exist: true |
| 34 | |
Sreeju | 7d7fc07 | 2019-06-13 12:03:00 -0600 | [diff] [blame] | 35 | {{- $onucount := (.Values.numOnus|int) }} |
Andy Bavier | e21a5f5 | 2019-05-28 15:39:52 -0700 | [diff] [blame] | 36 | {{- range $i, $junk := until (.Values.numOlts|int) }} |
Sreeju | 7d7fc07 | 2019-06-13 12:03:00 -0600 | [diff] [blame] | 37 | {{- range $j, $junk1 := until ($onucount) }} |
| 38 | whitelist{{ $i }}-{{ $j }}: |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 39 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 40 | properties: |
Andy Bavier | e21a5f5 | 2019-05-28 15:39:52 -0700 | [diff] [blame] | 41 | {{- if $.Values.legacyPonsim }} |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 42 | serial_number: PSMO12345678 |
| 43 | device_id: of:0000aabbccddeeff |
Andy Bavier | e21a5f5 | 2019-05-28 15:39:52 -0700 | [diff] [blame] | 44 | {{- else }} |
Sreeju | 7d7fc07 | 2019-06-13 12:03:00 -0600 | [diff] [blame] | 45 | serial_number: PSMO{{ printf "%04d%04d" $i $j }} |
Andy Bavier | e21a5f5 | 2019-05-28 15:39:52 -0700 | [diff] [blame] | 46 | device_id: {{ index $.Values.oltDpids $i }} |
| 47 | {{- end }} |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 48 | pon_port_id: 1 |
| 49 | requirements: |
| 50 | - owner: |
| 51 | node: service#att |
| 52 | relationship: tosca.relationships.BelongsToOne |
Sreeju | 7d7fc07 | 2019-06-13 12:03:00 -0600 | [diff] [blame] | 53 | {{- end }} |
| 54 | {{- end }} |