c tag:2, s tag:4, uni port:1, nni port:2, default tech profile id: 10 ---------------------------------------------- Case: * Mininet with UserSwitch is used to simulate Voltha part * Default Bandwidth Profile is not found (no meter for the trap flow) * Default Technology Profile is used for the trap flow (10 for the following example - SADIS configuration does not include tech profile id, so we can use default tech profile id for all flows) * Bandwidth Profile information is not used (as current usage - only c tag, s tag and access device information is provided, no meter for upstream/downstream flows) * Example SADIS Config { "apps" : { "org.opencord.sadis" : { "sadis" : { "integration" : { "cache" : { "enabled" : true, "maxsize" : 50, "ttl" : "PT1m" } }, "entries" : [ { "id" : "s1-eth1", "cTag" : 2, "sTag" : 4, "nasPortId" : "s1-eth1" }, { "id" : "1", "hardwareIdentifier" : "00:00:00:00:00:01", "ipAddress" : "127.0.0.1", "uplinkPort": "2" } ] } } }, "devices":{ "of:0000000000000001":{ "basic":{ "driver":"pmc-olt" } } } } Authentication Trap Flow: ---------------------------------- id=ac00002f18dba3, state=ADDED, bytes=0, packets=0, duration=10, liveType=UNKNOWN, priority=10000, tableId=0, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:1, ETH_TYPE:eapol], treatment=DefaultTrafficTreatment{immediate=[], deferred=[OUTPUT:CONTROLLER], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=METADATA:a00000000/0} Metadata Value (Hex): a00000000 Metadata Value (Binary): 00000000 00000000 00000000 00001010 00000000 00000000 00000000 00000000 (Most significant 2 bytes: 0 (inner vlan), next 2 bytes: 10 (tp id), next 4 bytes: 0 (no port info)) Metadata Mask: 0 Downstream Flows ---------------------------------- OLT ------- id=ac000095cba990, state=ADDED, bytes=0, packets=0, duration=0, liveType=UNKNOWN, priority=1000, tableId=0, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:2, VLAN_VID:4], treatment=DefaultTrafficTreatment{immediate=[VLAN_POP], deferred=[], transition=TABLE:1, meter=[], cleared=false, StatTrigger=null, metadata=METADATA:2000a00000001/0} Metadata Value (Hex): 2000a00000001 Metadata Value (Binary): 00000000 00000010 00000000 00001010 00000000 00000000 00000000 00000001 (Most significant 2 bytes: 2 (c tag), next 2 bytes: 10 (tp id), next 4 bytes: 1 (uni port)) Metadata Mask: 0 ONT -------- id=ac00001801d6d1, state=ADDED, bytes=0, packets=0, duration=0, liveType=UNKNOWN, priority=1000, tableId=1, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:2, VLAN_VID:2], treatment=DefaultTrafficTreatment{immediate=[VLAN_POP, VLAN_ID:0, OUTPUT:1], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=METADATA:a00000000/0} Metadata Value (Hex): a00000000 Metadata Value (Binary): 00000000 00000000 00000000 00001010 00000000 00000000 00000000 00000000 (Most significant 2 bytes: 0 (inner vlan), next 2 bytes: 10 (tp id), next 4 bytes: 0 (no port info)) Metadata Mask: 0 Upstream Flows ---------------------------------- ONT ---------- id=ac000000f780f6, state=ADDED, bytes=0, packets=0, duration=0, liveType=UNKNOWN, priority=1000, tableId=0, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:1, VLAN_VID:0], treatment=DefaultTrafficTreatment{immediate=[VLAN_ID:2], deferred=[], transition=TABLE:1, meter=[], cleared=false, StatTrigger=null, metadata=METADATA:4000a00000002/0} Metadata Value (Hex): 4000a00000002 Metadata Value (Binary): 00000000 00000100 00000000 00001010 00000000 00000000 00000000 00000010 (Most significant 2 bytes: 4 (s tag), next 2 bytes: 10 (tp id), next 4 bytes: 2 (nni port)) Metadata Mask: 0 OLT -------- id=ac0000c9fd17bf, state=ADDED, bytes=0, packets=0, duration=0, liveType=UNKNOWN, priority=1000, tableId=1, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:1, VLAN_VID:2], treatment=DefaultTrafficTreatment{immediate=[VLAN_PUSH:vlan, VLAN_ID:4, OUTPUT:2], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=METADATA:a00000000/0} Metadata Value (Hex): a00000000 Metadata Value (Binary): 00000000 00000000 00000000 00001010 00000000 00000000 00000000 00000000 (Most significant 2 bytes: 0 (inner vlan), next 2 bytes: 10 (tp id), next 4 bytes: 0 (no port info)) Metadata Mask: 0