Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -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-bbsim.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 | description: Create a simulated OLT Device in VOLTHA |
| 26 | topology_template: |
| 27 | node_templates: |
| 28 | |
| 29 | service#volt: |
| 30 | type: tosca.nodes.VOLTService |
| 31 | properties: |
| 32 | name: volt |
| 33 | must-exist: true |
| 34 | |
| 35 | olt_device: |
| 36 | type: tosca.nodes.OLTDevice |
| 37 | properties: |
| 38 | name: BBSIM_OLT |
| 39 | device_type: bbsim |
| 40 | host: bbsim.voltha.svc |
| 41 | # host: 10.233.33.1 |
| 42 | port: 50060 |
| 43 | switch_datapath_id: of:0000000000000001 |
| 44 | switch_port: "3" |
| 45 | outer_tpid: "0x8100" |
| 46 | uplink: "65536" |
| 47 | nas_id: "NAS_ID" |
| 48 | requirements: |
| 49 | - volt_service: |
| 50 | node: service#volt |
| 51 | relationship: tosca.relationships.BelongsToOne |
| 52 | |
| 53 | # Whitelist |
| 54 | service#att: |
| 55 | type: tosca.nodes.AttWorkflowDriverService |
| 56 | properties: |
| 57 | name: att-workflow-driver |
| 58 | must-exist: true |
| 59 | |
| 60 | NONE31323030: |
| 61 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 62 | properties: |
| 63 | serial_number: NONE30313030 |
| 64 | pon_port_id: 536870912 |
| 65 | # device_id: of:000000000ae9327a |
| 66 | device_id: of:0000aabbccddee12 |
| 67 | requirements: |
| 68 | - owner: |
| 69 | node: service#att |
| 70 | relationship: tosca.relationships.BelongsToOne |
| 71 | |
| 72 | # Pre-provision the subscriber |
| 73 | bbsim_subscriber_1: |
| 74 | type: tosca.nodes.RCORDSubscriber |
| 75 | properties: |
| 76 | name: Sub_NONE30313030 |
| 77 | status: pre-provisioned |
| 78 | c_tag: 123 |
| 79 | s_tag: 456 |
| 80 | onu_device: NONE30313030 |
| 81 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 82 | circuit_id: foo1 |
| 83 | remote_id: bar1 |