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 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 17 | imports: |
| 18 | - custom_types/switch.yaml |
Andy Bavier | 2d4364b | 2018-10-15 10:00:56 -0700 | [diff] [blame] | 19 | - custom_types/onosapp.yaml |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 20 | - custom_types/switchport.yaml |
| 21 | - custom_types/portinterface.yaml |
| 22 | - custom_types/bngportmapping.yaml |
Matteo Scandolo | b029c7a | 2018-10-12 13:19:30 -0700 | [diff] [blame] | 23 | - custom_types/serviceinstanceattribute.yaml |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 24 | |
| 25 | description: Configures the Ponsim SEBA POD with AT&T workflow |
| 26 | |
| 27 | topology_template: |
| 28 | node_templates: |
| 29 | # Fabric configuration |
| 30 | switch#leaf_1: |
| 31 | type: tosca.nodes.Switch |
| 32 | properties: |
| 33 | driver: ofdpa-ovs |
| 34 | ipv4Loopback: 192.168.0.201 |
| 35 | ipv4NodeSid: 17 |
| 36 | isEdgeRouter: True |
| 37 | name: leaf_1 |
| 38 | ofId: of:0000000000000001 |
| 39 | routerMac: 00:00:02:01:06:01 |
| 40 | |
| 41 | # Setup the OLT switch port |
| 42 | port#olt_port: |
| 43 | type: tosca.nodes.SwitchPort |
| 44 | properties: |
| 45 | portId: 2 |
| 46 | host_learning: false |
| 47 | requirements: |
| 48 | - switch: |
| 49 | node: switch#leaf_1 |
| 50 | relationship: tosca.relationships.BelongsToOne |
| 51 | |
| 52 | # Port connected to the BNG |
| 53 | port#bng_port: |
| 54 | type: tosca.nodes.SwitchPort |
| 55 | properties: |
| 56 | portId: 1 |
Andy Bavier | 7a08049 | 2018-08-30 14:26:09 -0700 | [diff] [blame] | 57 | requirements: |
| 58 | - switch: |
| 59 | node: switch#leaf_1 |
| 60 | relationship: tosca.relationships.BelongsToOne |
| 61 | |
| 62 | # Setup the fabric switch port where the external |
| 63 | # router is connected to |
| 64 | bngmapping: |
| 65 | type: tosca.nodes.BNGPortMapping |
| 66 | properties: |
| 67 | s_tag: "any" |
| 68 | switch_port: 1 |
Matteo Scandolo | b029c7a | 2018-10-12 13:19:30 -0700 | [diff] [blame] | 69 | |
Andy Bavier | 2d4364b | 2018-10-15 10:00:56 -0700 | [diff] [blame] | 70 | onos_app#dhcpl2relay: |
| 71 | type: tosca.nodes.ONOSApp |
| 72 | properties: |
| 73 | name: dhcpl2relay |
| 74 | must-exist: true |
| 75 | |
Matteo Scandolo | b029c7a | 2018-10-12 13:19:30 -0700 | [diff] [blame] | 76 | # DHCP L2 Relay config |
| 77 | dhcpl2relay-config-attr: |
| 78 | type: tosca.nodes.ServiceInstanceAttribute |
| 79 | properties: |
| 80 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 81 | value: > |
| 82 | { |
| 83 | "dhcpl2relay" : { |
| 84 | "useOltUplinkForServerPktInOut" : false, |
| 85 | "dhcpServerConnectPoints" : [ "of:0000000000000001/1" ] |
| 86 | } |
| 87 | } |
| 88 | requirements: |
| 89 | - service_instance: |
| 90 | node: onos_app#dhcpl2relay |
Andy Bavier | 2d4364b | 2018-10-15 10:00:56 -0700 | [diff] [blame] | 91 | relationship: tosca.relationships.BelongsToOne |