blob: ce3dda8946a29d9351b16186e5bad1fb0d9f67b8 [file] [log] [blame]
Andy Bavier7a080492018-08-30 14:26:09 -07001---
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
16tosca_definitions_version: tosca_simple_yaml_1_0
17imports:
18 - custom_types/switch.yaml
Andy Bavier2d4364b2018-10-15 10:00:56 -070019 - custom_types/onosapp.yaml
Andy Bavier7a080492018-08-30 14:26:09 -070020 - custom_types/switchport.yaml
21 - custom_types/portinterface.yaml
22 - custom_types/bngportmapping.yaml
Matteo Scandolob029c7a2018-10-12 13:19:30 -070023 - custom_types/serviceinstanceattribute.yaml
Andy Bavier7a080492018-08-30 14:26:09 -070024
Andy Bavier923d8ff2019-03-15 14:49:13 -070025description: Configures the Ponsim SEBA POD fabric
Andy Bavier7a080492018-08-30 14:26:09 -070026
27topology_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 Bavier7a080492018-08-30 14:26:09 -070057 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 Scandolob029c7a2018-10-12 13:19:30 -070069
Andy Bavier2d4364b2018-10-15 10:00:56 -070070 onos_app#dhcpl2relay:
71 type: tosca.nodes.ONOSApp
72 properties:
73 name: dhcpl2relay
74 must-exist: true
75
Matteo Scandolob029c7a2018-10-12 13:19:30 -070076 # 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 Bavier2d4364b2018-10-15 10:00:56 -070091 relationship: tosca.relationships.BelongsToOne