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 |
| 19 | - custom_types/switchport.yaml |
| 20 | - custom_types/portinterface.yaml |
| 21 | - custom_types/bngportmapping.yaml |
| 22 | |
| 23 | description: Configures the Ponsim SEBA POD with AT&T workflow |
| 24 | |
| 25 | topology_template: |
| 26 | node_templates: |
| 27 | # Fabric configuration |
| 28 | switch#leaf_1: |
| 29 | type: tosca.nodes.Switch |
| 30 | properties: |
| 31 | driver: ofdpa-ovs |
| 32 | ipv4Loopback: 192.168.0.201 |
| 33 | ipv4NodeSid: 17 |
| 34 | isEdgeRouter: True |
| 35 | name: leaf_1 |
| 36 | ofId: of:0000000000000001 |
| 37 | routerMac: 00:00:02:01:06:01 |
| 38 | |
| 39 | # Setup the OLT switch port |
| 40 | port#olt_port: |
| 41 | type: tosca.nodes.SwitchPort |
| 42 | properties: |
| 43 | portId: 2 |
| 44 | host_learning: false |
| 45 | requirements: |
| 46 | - switch: |
| 47 | node: switch#leaf_1 |
| 48 | relationship: tosca.relationships.BelongsToOne |
| 49 | |
| 50 | # Port connected to the BNG |
| 51 | port#bng_port: |
| 52 | type: tosca.nodes.SwitchPort |
| 53 | properties: |
| 54 | portId: 1 |
| 55 | host_learning: false |
| 56 | requirements: |
| 57 | - switch: |
| 58 | node: switch#leaf_1 |
| 59 | relationship: tosca.relationships.BelongsToOne |
| 60 | |
| 61 | # Setup the fabric switch port where the external |
| 62 | # router is connected to |
| 63 | bngmapping: |
| 64 | type: tosca.nodes.BNGPortMapping |
| 65 | properties: |
| 66 | s_tag: "any" |
| 67 | switch_port: 1 |