Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4558

volt-remove-subscriber-unitag command is not working as expected

    XMLWordPrintable

    Details

    • Story Points:
      2
    • Epic Link:
    • Sprint:
      VOLTHA 2.10 - Sprint 2

      Description

      TT multi-uni bbsim based deployment

      Subscriber entry remains in output of volt-programmed-subscriber command even after un-provisioning it using volt-remove-subscriber-unitag command. Also, subscriber flows doesn't get removed.

      Add Sub-1:

      karaf@root > volt-add-subscriber-unitag --tpId 64 --sTag 900 --cTag 900 BBSM000a0001-1
      karaf@root > volt-programmed-subscribers                                        
      location=of:00000a0a0a0a0a0a/256 tagInformation=UniTagInformation{uniTagMatch=35, ponCTag=900, ponSTag=900, usPonCTagPriority=-1, usPonSTagPriority=-1, dsPonCTagPriority=-1, dsPonSTagPriority=-1, technologyProfileId=64, enableMacLearning=false, upstreamBandwidthProfile='User_Bandwidth1', downstreamBandwidthProfile='User_Bandwidth2', upstreamOltBandwidthProfile='User_Bandwidth1', downstreamOltBandwidthProfile='User_Bandwidth2', serviceName='hsia', configuredMacAddress='A4:23:05:00:00:00', isDhcpRequired=false, isIgmpRequired=false}
      karaf@root > flows -s                                                           
      deviceId=of:00000a0a0a0a0a0a, flowRuleCount=7
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:lldp], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:2], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:17, UDP_SRC:67, UDP_DST:68], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:256, VLAN_VID:35], treatment=[immediate=[VLAN_ID:900], transition=TABLE:1, meter=METER:1, metadata=METADATA:384004001000000/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16777216, METADATA:384, VLAN_VID:900], treatment=[immediate=[VLAN_POP], transition=TABLE:1, meter=METER:2, metadata=METADATA:384004000000100/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:256, VLAN_VID:900], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:900, OUTPUT:16777216], meter=METER:1, metadata=METADATA:4000000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16777216, METADATA:100, VLAN_VID:900], treatment=[immediate=[VLAN_ID:35, OUTPUT:256], meter=METER:2, metadata=METADATA:4000000000/0]
      karaf@root > 
      

       

      Add Sub-2:

      karaf@root > volt-add-subscriber-unitag --tpId 65 --sTag 333 --cTag 444 BBSM000a0001-1                                                                  
      karaf@root > volt-programmed-subscribers                                        
      location=of:00000a0a0a0a0a0a/256 tagInformation=UniTagInformation{uniTagMatch=65, ponCTag=444, ponSTag=333, usPonCTagPriority=7, usPonSTagPriority=7, dsPonCTagPriority=7, dsPonSTagPriority=7, technologyProfileId=65, enableMacLearning=false, upstreamBandwidthProfile='User_Bandwidth1', downstreamBandwidthProfile='User_Bandwidth2', upstreamOltBandwidthProfile='User_Bandwidth1', downstreamOltBandwidthProfile='User_Bandwidth2', serviceName='voip', configuredMacAddress='2e:0a:00:01:00:01', isDhcpRequired=true, isIgmpRequired=false}
      location=of:00000a0a0a0a0a0a/256 tagInformation=UniTagInformation{uniTagMatch=35, ponCTag=900, ponSTag=900, usPonCTagPriority=-1, usPonSTagPriority=-1, dsPonCTagPriority=-1, dsPonSTagPriority=-1, technologyProfileId=64, enableMacLearning=false, upstreamBandwidthProfile='User_Bandwidth1', downstreamBandwidthProfile='User_Bandwidth2', upstreamOltBandwidthProfile='User_Bandwidth1', downstreamOltBandwidthProfile='User_Bandwidth2', serviceName='hsia', configuredMacAddress='A4:23:05:00:00:00', isDhcpRequired=false, isIgmpRequired=false}
      karaf@root > flows -s                                                           
      deviceId=of:00000a0a0a0a0a0a, flowRuleCount=12
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:256, ETH_TYPE:ipv4, VLAN_VID:65, IP_PROTO:17, UDP_SRC:68, UDP_DST:67], treatment=[immediate=[OUTPUT:CONTROLLER, VLAN_ID:444, VLAN_PCP:7], meter=METER:1, metadata=METADATA:41004100000001/0]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:lldp], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:2], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:17, UDP_SRC:67, UDP_DST:68], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:256, VLAN_VID:35], treatment=[immediate=[VLAN_ID:900], transition=TABLE:1, meter=METER:1, metadata=METADATA:384004001000000/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16777216, METADATA:384, VLAN_VID:900], treatment=[immediate=[VLAN_POP], transition=TABLE:1, meter=METER:2, metadata=METADATA:384004000000100/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16777216, METADATA:1bc, ETH_DST:2E:0A:00:01:00:01, VLAN_VID:333, VLAN_PCP:7], treatment=[immediate=[VLAN_POP, VLAN_ID:444, VLAN_PCP:7], transition=TABLE:1, meter=METER:2, metadata=METADATA:1bc004100000100/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:256, VLAN_VID:65], treatment=[immediate=[VLAN_ID:444, VLAN_PCP:7], transition=TABLE:1, meter=METER:1, metadata=METADATA:1bc004101000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:256, VLAN_VID:900], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:900, OUTPUT:16777216], meter=METER:1, metadata=METADATA:4000000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:256, VLAN_VID:444, VLAN_PCP:7], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:333, VLAN_PCP:7, OUTPUT:16777216], meter=METER:1, metadata=METADATA:4100000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16777216, METADATA:100, VLAN_VID:900], treatment=[immediate=[VLAN_ID:35, OUTPUT:256], meter=METER:2, metadata=METADATA:4000000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16777216, METADATA:100, VLAN_VID:444], treatment=[immediate=[VLAN_ID:65, OUTPUT:256], meter=METER:2, metadata=METADATA:4100000000/0]
      karaf@root >          
      

      Remove Sub:

      karaf@root > volt-remove-subscriber-unitag --tpId 65 --sTag 333 --cTag 444 BBSM000a0001-1                                                                   
      16:21:17.572 DEBUG [Olt] Found on of:00000a0a0a0a0a0a/256[BBSM000a0001-1]
      16:21:17.576 DEBUG [Olt] Un-provisioning subscriber on of:00000a0a0a0a0a0a/256 with cTag 444, stag 333, tpId 65
      16:21:17.578 DEBUG [Olt] Getting uni tag information for BBSM000a0001-1, innerVlan: 444, outerVlan: 333, tpId: 65
      16:21:17.585 INFO  [Olt] Adding subscriber to queue: of:00000a0a0a0a0a0a/256[BBSM000a0001-1] with status ADDED and subscriber true
      karaf@root > volt-programmed-subscribers                                        
      location=of:00000a0a0a0a0a0a/256 tagInformation=UniTagInformation{uniTagMatch=65, ponCTag=444, ponSTag=333, usPonCTagPriority=7, usPonSTagPriority=7, dsPonCTagPriority=7, dsPonSTagPriority=7, technologyProfileId=65, enableMacLearning=false, upstreamBandwidthProfile='User_Bandwidth1', downstreamBandwidthProfile='User_Bandwidth2', upstreamOltBandwidthProfile='User_Bandwidth1', downstreamOltBandwidthProfile='User_Bandwidth2', serviceName='voip', configuredMacAddress='2e:0a:00:01:00:01', isDhcpRequired=true, isIgmpRequired=false}
      location=of:00000a0a0a0a0a0a/256 tagInformation=UniTagInformation{uniTagMatch=35, ponCTag=900, ponSTag=900, usPonCTagPriority=-1, usPonSTagPriority=-1, dsPonCTagPriority=-1, dsPonSTagPriority=-1, technologyProfileId=64, enableMacLearning=false, upstreamBandwidthProfile='User_Bandwidth1', downstreamBandwidthProfile='User_Bandwidth2', upstreamOltBandwidthProfile='User_Bandwidth1', downstreamOltBandwidthProfile='User_Bandwidth2', serviceName='hsia', configuredMacAddress='A4:23:05:00:00:00', isDhcpRequired=false, isIgmpRequired=false}
      karaf@root > flows -s                                                           
      deviceId=of:00000a0a0a0a0a0a, flowRuleCount=12
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:256, ETH_TYPE:ipv4, VLAN_VID:65, IP_PROTO:17, UDP_SRC:68, UDP_DST:67], treatment=[immediate=[OUTPUT:CONTROLLER, VLAN_ID:444, VLAN_PCP:7], meter=METER:1, metadata=METADATA:41004100000001/0]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:lldp], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:2], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16777216, ETH_TYPE:ipv4, IP_PROTO:17, UDP_SRC:67, UDP_DST:68], treatment=[immediate=[OUTPUT:CONTROLLER]]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:256, VLAN_VID:35], treatment=[immediate=[VLAN_ID:900], transition=TABLE:1, meter=METER:1, metadata=METADATA:384004001000000/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16777216, METADATA:384, VLAN_VID:900], treatment=[immediate=[VLAN_POP], transition=TABLE:1, meter=METER:2, metadata=METADATA:384004000000100/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:16777216, METADATA:1bc, ETH_DST:2E:0A:00:01:00:01, VLAN_VID:333, VLAN_PCP:7], treatment=[immediate=[VLAN_POP, VLAN_ID:444, VLAN_PCP:7], transition=TABLE:1, meter=METER:2, metadata=METADATA:1bc004100000100/0]
          ADDED, bytes=0, packets=0, table=0, priority=1000, selector=[IN_PORT:256, VLAN_VID:65], treatment=[immediate=[VLAN_ID:444, VLAN_PCP:7], transition=TABLE:1, meter=METER:1, metadata=METADATA:1bc004101000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:256, VLAN_VID:900], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:900, OUTPUT:16777216], meter=METER:1, metadata=METADATA:4000000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:256, VLAN_VID:444, VLAN_PCP:7], treatment=[immediate=[VLAN_PUSH:vlan, VLAN_ID:333, VLAN_PCP:7, OUTPUT:16777216], meter=METER:1, metadata=METADATA:4100000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16777216, METADATA:100, VLAN_VID:900], treatment=[immediate=[VLAN_ID:35, OUTPUT:256], meter=METER:2, metadata=METADATA:4000000000/0]
          ADDED, bytes=0, packets=0, table=1, priority=1000, selector=[IN_PORT:16777216, METADATA:100, VLAN_VID:444], treatment=[immediate=[VLAN_ID:65, OUTPUT:256], meter=METER:2, metadata=METADATA:4100000000/0]
      karaf@root >         
      

      ONOS Logs:

      16:21:17.576 DEBUG [Olt] Un-provisioning subscriber on of:00000a0a0a0a0a0a/256 with cTag 444, stag 333, tpId 65
      16:21:17.578 DEBUG [Olt] Getting uni tag information for BBSM000a0001-1, innerVlan: 444, outerVlan: 333, tpId: 65
      16:21:17.585 INFO [Olt] Adding subscriber to queue: of:00000a0a0a0a0a0a/256[BBSM000a0001-1] with status ADDED and subscriber true
      

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            andrea Andrea Campanella
            Reporter:
            hardikwindlass Hardik Windlass
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes