Kailash | 6474d75 | 2018-12-17 15:16:26 -0800 | [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 | - custom_types/attworkflowdriverwhitelistentry.yaml |
| 23 | - custom_types/attworkflowdriverservice.yaml |
| 24 | - custom_types/rcordsubscriber.yaml |
| 25 | - custom_types/switch.yaml |
| 26 | - custom_types/switchport.yaml |
| 27 | description: Create a simulated OLT Device in VOLTHA |
| 28 | topology_template: |
| 29 | node_templates: |
| 30 | |
| 31 | service#volt: |
| 32 | type: tosca.nodes.VOLTService |
| 33 | properties: |
| 34 | name: volt |
| 35 | must-exist: true |
| 36 | |
| 37 | # CIG |
| 38 | olt_device: |
| 39 | type: tosca.nodes.OLTDevice |
| 40 | properties: |
| 41 | name: CIG |
| 42 | device_type: openolt |
| 43 | host: 10.90.0.115 |
| 44 | port: 10400 |
| 45 | switch_datapath_id: of:0000000000000001 |
| 46 | switch_port: "4" |
| 47 | outer_tpid: "0x8100" |
| 48 | uplink: "65536" |
| 49 | nas_id: "NAS_ID" |
| 50 | requirements: |
| 51 | - volt_service: |
| 52 | node: service#volt |
| 53 | relationship: tosca.relationships.BelongsToOne |
| 54 | |
| 55 | # Whitelist |
| 56 | service#att: |
| 57 | type: tosca.nodes.AttWorkflowDriverService |
| 58 | properties: |
| 59 | name: att-workflow-driver |
| 60 | must-exist: true |
| 61 | |
| 62 | CIG: |
| 63 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 64 | properties: |
| 65 | serial_number: CIGG70606829 |
| 66 | pon_port_id: 536870913 |
| 67 | device_id: of:000000000a5a0073 |
| 68 | requirements: |
| 69 | - owner: |
| 70 | node: service#att |
| 71 | relationship: tosca.relationships.BelongsToOne |
| 72 | |
| 73 | # Pre-provision the subscriber |
| 74 | cig_subscriber_1: |
| 75 | type: tosca.nodes.RCORDSubscriber |
| 76 | properties: |
| 77 | name: Sub_CIGG70606829 |
| 78 | status: pre-provisioned |
| 79 | c_tag: 444 |
| 80 | s_tag: 444 |
| 81 | onu_device: CIGG70606829 |
| 82 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 83 | circuit_id: foo1 |
| 84 | remote_id: bar1 |
| 85 | |
| 86 | switch#leaf_1: |
| 87 | type: tosca.nodes.Switch |
| 88 | properties: |
| 89 | name: AGG_SWITCH |
| 90 | must-exist: true |
| 91 | |
| 92 | port#cig_olt_port: |
| 93 | type: tosca.nodes.SwitchPort |
| 94 | properties: |
| 95 | portId: 4 |
| 96 | host_learning: false |
| 97 | requirements: |
| 98 | - switch: |
| 99 | node: switch#leaf_1 |
| 100 | relationship: tosca.relationships.BelongsToOne |