Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-olt.yaml http://10.90.0.101:30007/run |
| 16 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 19 | - custom_types/oltdevice.yaml |
| 20 | - custom_types/onudevice.yaml |
| 21 | - custom_types/voltservice.yaml |
| 22 | description: Create a simulated OLT Device in VOLTHA |
| 23 | topology_template: |
| 24 | node_templates: |
| 25 | |
| 26 | service#volt: |
| 27 | type: tosca.nodes.VOLTService |
| 28 | properties: |
| 29 | name: volt |
| 30 | must-exist: true |
| 31 | |
| 32 | # OLT ------------------------------------------------ |
| 33 | olt_device: |
| 34 | type: tosca.nodes.OLTDevice |
| 35 | properties: |
| 36 | name: ONF OLT |
| 37 | device_type: openolt |
| 38 | host: 10.90.0.114 |
| 39 | port: 9191 |
| 40 | switch_datapath_id: of:0000000000000001 |
| 41 | switch_port: "1" |
| 42 | outer_tpid: "0x8100" |
| 43 | uplink: "65536" |
| 44 | nas_id: "NAS_ID" |
| 45 | requirements: |
| 46 | - volt_service: |
| 47 | node: service#volt |
| 48 | relationship: tosca.relationships.BelongsToOne |
| 49 | |
| 50 | # Whitelist ------------------------------------------------ |
| 51 | ALPHe3d1cfe3: |
| 52 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 53 | properties: |
| 54 | serial_number: ALPHe3d1cfe3 |
| 55 | pon_port_id: 536870912 |
| 56 | device_id: of:000000000a5a0097 |
| 57 | requirements: |
| 58 | - owner: |
| 59 | node: service#att |
| 60 | relationship: tosca.relationships.BelongsToOne |
| 61 | |
| 62 | ISKT71E80080: |
| 63 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 64 | properties: |
| 65 | serial_number: ISKT71E80080 |
| 66 | pon_port_id: 536870912 |
| 67 | device_id: of:000000000a5a0097 |
| 68 | requirements: |
| 69 | - owner: |
| 70 | node: service#att |
| 71 | relationship: tosca.relationships.BelongsToOne |
| 72 | |
| 73 | # Subscriber ------------------------------------------------ |
| 74 | shad_1: |
| 75 | type: tosca.nodes.RCORDSubscriber |
| 76 | properties: |
| 77 | name: Sub_ALPHe3d1cfe3 |
| 78 | status: pre-provisioned |
| 79 | c_tag: 111 |
| 80 | s_tag: 222 |
| 81 | onu_device: ALPHe3d1cfe3 |
| 82 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 83 | circuit_id: foo1 |
| 84 | remote_id: bar1 |
| 85 | |
| 86 | shad_2: |
| 87 | type: tosca.nodes.RCORDSubscriber |
| 88 | properties: |
| 89 | name: Sub_ISKT71E80080 |
| 90 | status: pre-provisioned |
| 91 | c_tag: 222 |
| 92 | s_tag: 222 |
| 93 | onu_device: ISKT71E80080 |
| 94 | nas_port_id : "PON 1/1/04/1:1.1.1" |
| 95 | circuit_id: foo2 |
| 96 | remote_id: bar2 |