+tosca_definitions_version: tosca_simple_yaml_1_0\r
+imports:\r
+ - custom_types/switch.yaml\r
+ - custom_types/switchport.yaml\r
+ - custom_types/portinterface.yaml\r
+ - custom_types/bngportmapping.yaml\r
+ - custom_types/attworkflowdriverwhitelistentry.yaml\r
+ - custom_types/attworkflowdriverservice.yaml\r
+ - custom_types/serviceinstanceattribute.yaml\r
+ - custom_types/onosapp.yaml\r
+\r
+description: Configures a full SEBA POD\r
+\r
+topology_template:\r
+ node_templates:\r
+ # Fabric configuration\r
+ switch#leaf_1:\r
+ type: tosca.nodes.Switch\r
+ properties:\r
+ driver: ofdpa3\r
+ ipv4Loopback: 100.100.0.201\r
+ ipv4NodeSid: 17\r
+ isEdgeRouter: "True"\r
+ name: AGG_SWITCH\r
+ ofId: of:0000000000000001\r
+ routerMac: 00:00:02:01:06:01\r
+\r
+ # Setup the OLT switch port\r
+ port#olt_port:\r
+ type: tosca.nodes.SwitchPort\r
+ properties:\r
+ portId: 1\r
+ host_learning: false\r
+ requirements:\r
+ - switch:\r
+ node: switch#leaf_1\r
+ relationship: tosca.relationships.BelongsToOne\r
+\r
+ # Port connected to the BNG\r
+ port#bng_port:\r
+ type: tosca.nodes.SwitchPort\r
+ properties:\r
+ portId: 31\r
+ requirements:\r
+ - switch:\r
+ node: switch#leaf_1\r
+ relationship: tosca.relationships.BelongsToOne\r
+\r
+ # Setup the fabric switch port where the external\r
+ # router is connected to\r
+ bngmapping:\r
+ type: tosca.nodes.BNGPortMapping\r
+ properties:\r
+ s_tag: any\r
+ switch_port: 31\r
+\r
+ # DHCP L2 Relay config\r
+ onos_app#dhcpl2relay:\r
+ type: tosca.nodes.ONOSApp\r
+ properties:\r
+ name: dhcpl2relay\r
+ must-exist: true\r
+\r
+ dhcpl2relay-config-attr:\r
+ type: tosca.nodes.ServiceInstanceAttribute\r
+ properties:\r
+ name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay\r
+ value: >\r
+ {\r
+ "dhcpl2relay" : {\r
+ "useOltUplinkForServerPktInOut" : false,\r
+ "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ]\r
+ }\r
+ }\r
+ requirements:\r
+ - service_instance:\r
+ node: onos_app#dhcpl2relay\r
+ relationship: tosca.relationships.BelongsToOne\r