blob: 1ee7e00d1ae56ed7f0b5eadb231babc705188357 [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Kailash2b154c22019-02-26 14:26:46 -08002#
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-fabric.yaml http://10.90.0.101:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/switch.yaml
20 - custom_types/switchport.yaml
21 - custom_types/portinterface.yaml
22 - custom_types/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
25 - custom_types/serviceinstanceattribute.yaml
26 - custom_types/onosapp.yaml
27
28description: Configures the ONF SEBA POD with AT&T workflow
29
30topology_template:
31 node_templates:
32 # Fabric configuration
33 switch#leaf_1:
34 type: tosca.nodes.Switch
35 properties:
36 driver: ofdpa3
37 ipv4Loopback: 192.168.0.201
38 ipv4NodeSid: 17
39 isEdgeRouter: True
40 name: AGG_SWITCH
41 ofId: of:0000000000000001
42 routerMac: 00:00:02:01:06:01
43
44 # Setup the OLT switch port
45 port#olt_port:
46 type: tosca.nodes.SwitchPort
47 properties:
48 portId: 1
49 host_learning: false
50 requirements:
51 - switch:
52 node: switch#leaf_1
53 relationship: tosca.relationships.BelongsToOne
54
55 # Port connected to the BNG
56 port#bng_port:
57 type: tosca.nodes.SwitchPort
58 properties:
59 portId: 31
60 requirements:
61 - switch:
62 node: switch#leaf_1
63 relationship: tosca.relationships.BelongsToOne
64
65 # Setup the fabric switch port where the external
66 # router is connected to
67 bngmapping:
68 type: tosca.nodes.BNGPortMapping
69 properties:
70 s_tag: any
71 switch_port: 31
72
73 # DHCP L2 Relay config
74 onos_app#dhcpl2relay:
75 type: tosca.nodes.ONOSApp
76 properties:
77 name: dhcpl2relay
78 must-exist: true
79
80 dhcpl2relay-config-attr:
81 type: tosca.nodes.ServiceInstanceAttribute
82 properties:
83 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
84 value: >
85 {
86 "dhcpl2relay" : {
87 "useOltUplinkForServerPktInOut" : false,
88 "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ]
89 }
90 }
91 requirements:
92 - service_instance:
93 node: onos_app#dhcpl2relay
94 relationship: tosca.relationships.BelongsToOne
95
96 # ONU Whitelist
97 service#att:
98 type: tosca.nodes.AttWorkflowDriverService
99 properties:
100 name: att-workflow-driver
101 must-exist: true
102
103 BRCM22222222:
104 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
105 properties:
106 serial_number: BRCM22222222
107 # pon_port_id: 536870912
108 pon_port_id: 12345678
109 device_id: of:000000000a5a0072
110 requirements:
111 - owner:
112 node: service#att
113 relationship: tosca.relationships.BelongsToOne
114
115 ALPHe3d1cfde:
116 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
117 properties:
118 serial_number: ALPHe3d1cfde
119 pon_port_id: 536870912
120 device_id: of:000000000a5a0072
121 requirements:
122 - owner:
123 node: service#att
124 relationship: tosca.relationships.BelongsToOne
125
126 ISKT71e801a0:
127 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
128 properties:
129 serial_number: ISKT71e801a0
130 pon_port_id: 536870912
131 device_id: of:000000000a5a0072
132 requirements:
133 - owner:
134 node: service#att
135 relationship: tosca.relationships.BelongsToOne