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 |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 22 | - custom_types/bngportmapping.yaml |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 23 | - custom_types/attworkflowdriverwhitelistentry.yaml |
| 24 | - custom_types/attworkflowdriverservice.yaml |
| 25 | - custom_types/rcordsubscriber.yaml |
Matteo Scandolo | c75769d | 2018-10-16 10:55:47 -0700 | [diff] [blame] | 26 | - custom_types/serviceinstanceattribute.yaml |
| 27 | - custom_types/onosapp.yaml |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 28 | description: Create a simulated OLT Device in VOLTHA |
| 29 | topology_template: |
| 30 | node_templates: |
| 31 | |
| 32 | service#volt: |
| 33 | type: tosca.nodes.VOLTService |
| 34 | properties: |
| 35 | name: volt |
| 36 | must-exist: true |
| 37 | |
| 38 | olt_device: |
| 39 | type: tosca.nodes.OLTDevice |
| 40 | properties: |
| 41 | name: BBSIM_OLT |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 42 | device_type: bbsimolt |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 43 | host: bbsim.voltha.svc |
| 44 | # host: 10.233.33.1 |
| 45 | port: 50060 |
| 46 | switch_datapath_id: of:0000000000000001 |
| 47 | switch_port: "3" |
| 48 | outer_tpid: "0x8100" |
Scott Baker | 970d5d5 | 2018-12-11 07:00:17 +0000 | [diff] [blame] | 49 | uplink: "65536" |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 50 | nas_id: "NAS_ID" |
| 51 | requirements: |
| 52 | - volt_service: |
| 53 | node: service#volt |
| 54 | relationship: tosca.relationships.BelongsToOne |
| 55 | |
Matteo Scandolo | c75769d | 2018-10-16 10:55:47 -0700 | [diff] [blame] | 56 | # POD Config |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 57 | bngmapping: |
| 58 | type: tosca.nodes.BNGPortMapping |
| 59 | properties: |
| 60 | s_tag: any |
| 61 | switch_port: 31 |
| 62 | |
Matteo Scandolo | c75769d | 2018-10-16 10:55:47 -0700 | [diff] [blame] | 63 | # DHCP L2 Relay config |
| 64 | onos_app#dhcpl2relay: |
| 65 | type: tosca.nodes.ONOSApp |
| 66 | properties: |
| 67 | name: dhcpl2relay |
| 68 | must-exist: true |
| 69 | |
| 70 | dhcpl2relay-config-attr: |
| 71 | type: tosca.nodes.ServiceInstanceAttribute |
| 72 | properties: |
| 73 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 74 | value: > |
| 75 | { |
| 76 | "dhcpl2relay" : { |
| 77 | "useOltUplinkForServerPktInOut" : true |
| 78 | } |
| 79 | } |
| 80 | requirements: |
| 81 | - service_instance: |
| 82 | node: onos_app#dhcpl2relay |
| 83 | relationship: tosca.relationships.BelongsToOne |
| 84 | |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 85 | # Whitelist |
| 86 | service#att: |
| 87 | type: tosca.nodes.AttWorkflowDriverService |
| 88 | properties: |
| 89 | name: att-workflow-driver |
| 90 | must-exist: true |
| 91 | |
| 92 | NONE31323030: |
| 93 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 94 | properties: |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 95 | serial_number: NONE00000100 |
| 96 | pon_port_id: 536870913 |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 97 | device_id: of:0000aabbccddee12 |
| 98 | requirements: |
| 99 | - owner: |
| 100 | node: service#att |
| 101 | relationship: tosca.relationships.BelongsToOne |
| 102 | |
| 103 | # Pre-provision the subscriber |
| 104 | bbsim_subscriber_1: |
| 105 | type: tosca.nodes.RCORDSubscriber |
| 106 | properties: |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 107 | name: Sub_NONE00000100 |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 108 | status: pre-provisioned |
| 109 | c_tag: 123 |
| 110 | s_tag: 456 |
Matteo Scandolo | 48be012 | 2018-10-15 15:01:54 -0700 | [diff] [blame] | 111 | onu_device: NONE00000100 |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 112 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 113 | circuit_id: foo1 |
| 114 | remote_id: bar1 |