Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1797

Flows are not removed on ONOS and Switches after host-intent removal

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:

      Description

      onos> intents
      id=0x800000, state=INSTALLED, key=0x800000, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:03/-1]
      selector=[ETH_TYPE

      {ethType=800}]
      treatment=[DROP{}]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:03/-1
      onos>
      onos> intents
      intents intents-events intents-events-metrics
      onos> remove-intent -p org.onosproject.cli 0x800000
      onos> intents
      onos>
      onos> intents
      onos>
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/29@16:09
      nodes=5, devices=2, links=2, hosts=2, SCC(s)=1, flows=14, intents=0
      onos>
      onos> flows
      deviceId=of:0000000000000001, flowRuleCount=7
      id=a19adbd2cf8c9964, state=ADDED, bytes=48357, packets=597, duration=1147, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE{ethType=88cc}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=a4450f09e4c33da1, state=ADDED, bytes=2418, packets=31, duration=1147, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ICMPV6_TYPE{icmpv6Type=135}, IP_PROTO{protocol=58}, ETH_TYPE{ethType=86dd}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}]
      , deferred=[], transition=None, cleared=false}
      id=e0aca35cff140f87, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE{ethType=8942}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=16000007be8d32, state=ADDED, bytes=0, packets=0, duration=129, priority=123, tableId=0 appId=org.onosproject.net.intent
      selector=[ETH_DST{mac=00:00:00:00:00:01}, ETH_TYPE{ethType=800}

      , ETH_SRC

      {mac=00:00:00:00:00:03}

      , IN_PORT

      {port=3}]
      treatment=DefaultTrafficTreatment{immediate=[DROP{}, OUTPUT{port=1}], deferred=[], transition=None, cleared=false}
      id=16000073d5792f, state=ADDED, bytes=9702, packets=99, duration=197, priority=123, tableId=0 appId=org.onosproject.net.intent
      selector=[ETH_TYPE{ethType=800}, ETH_DST{mac=00:00:00:00:00:03}, ETH_SRC{mac=00:00:00:00:00:01}, IN_PORT{port=1}]

      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=3}

      ], deferred=[], transition=None, cleared=false}
      id=161c3297a084fc2b, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE

      {ethType=806}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=5cb1a3ad5b87ea6c, state=ADDED, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ICMPV6_TYPE{icmpv6Type=136}, IP_PROTO{protocol=58}, ETH_TYPE{ethType=86dd}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}]
      , deferred=[], transition=None, cleared=false}
      deviceId=of:0000000000000002, flowRuleCount=7
      id=a4b31e20c46301c4, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE{ethType=806}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=c2c16d9647f2608e, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ICMPV6_TYPE{icmpv6Type=135}, IP_PROTO{protocol=58}, ETH_TYPE{ethType=86dd}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}

      ], deferred=[], transition=None, cleared=false}
      id=d0831a08272a26c3, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE

      {ethType=88cc}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=d8b1df03b9cddb54, state=ADDED, bytes=0, packets=0, duration=1147, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ICMPV6_TYPE{icmpv6Type=136}, IP_PROTO{protocol=58}, ETH_TYPE{ethType=86dd}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}

      ], deferred=[], transition=None, cleared=false}
      id=160000719d57c2, state=ADDED, bytes=9702, packets=99, duration=197, priority=123, tableId=0 appId=org.onosproject.net.intent
      selector=[ETH_TYPE

      {ethType=800}, ETH_DST{mac=00:00:00:00:00:03}, ETH_SRC{mac=00:00:00:00:00:01}, IN_PORT{port=3}]
      treatment=DefaultTrafficTreatment{immediate=[DROP{}, OUTPUT{port=1}], deferred=[], transition=None, cleared=false}
      id=160000b80220f9, state=ADDED, bytes=0, packets=0, duration=129, priority=123, tableId=0 appId=org.onosproject.net.intent
      selector=[ETH_SRC{mac=00:00:00:00:00:03}, ETH_TYPE{ethType=800}

      , IN_PORT

      {port=1}

      , ETH_DST

      {mac=00:00:00:00:00:01}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=3}

      ], deferred=[], transition=None, cleared=false}
      id=280e447e275fca8d, state=PENDING_ADD, bytes=0, packets=0, duration=0, priority=40000, tableId=0 appId=org.onosproject.core
      selector=[ETH_TYPE

      {ethType=8942}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=CONTROLLER}

      ], deferred=[], transition=None, cleared=false}
      onos>

      ##################MN LOGS############
      mininet> sh ovs-ofctl dump-flows s1
      NXST_FLOW reply (xid=0x4):
      cookie=0xa4450f09e4c33da1, duration=1171.669s, table=0, n_packets=32, n_bytes=2496, idle_age=11, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
      cookie=0xe2c44f0a8826032c, duration=1171.658s, table=0, n_packets=0, n_bytes=0, idle_age=1945, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
      cookie=0x16000007be8d32, duration=153.598s, table=0, n_packets=0, n_bytes=0, idle_age=153, priority=123,ip,in_port=3,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01 actions=drop
      cookie=0x160000bd03556f, duration=153.593s, table=0, n_packets=0, n_bytes=0, idle_age=153, priority=123,ip,in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 actions=output:3
      cookie=0xa19adbd2cf8c9964, duration=1171.675s, table=0, n_packets=605, n_bytes=49005, idle_age=0, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
      cookie=0x280e447e2751b30c, duration=1171.669s, table=0, n_packets=605, n_bytes=49005, idle_age=0, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
      cookie=0xec14bf42ec928dc8, duration=1171.669s, table=0, n_packets=4, n_bytes=168, idle_age=1021, priority=40000,arp actions=CONTROLLER:65535
      mininet>
      mininet> sh ovs-ofctl dump-flows s2
      NXST_FLOW reply (xid=0x4):
      cookie=0x446d7002b9cd66f5, duration=1458.965s, table=0, n_packets=32, n_bytes=2496, idle_age=293, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
      cookie=0xd8b1df03b9cddb54, duration=1458.963s, table=0, n_packets=0, n_bytes=0, idle_age=2232, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
      cookie=0x16000071eea2e8, duration=440.888s, table=0, n_packets=0, n_bytes=0, idle_age=440, priority=123,ip,in_port=3,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 actions=drop
      cookie=0x160000b80220f9, duration=440.883s, table=0, n_packets=0, n_bytes=0, idle_age=440, priority=123,ip,in_port=1,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01 actions=output:3
      cookie=0x6a1ff0f781b160e0, duration=1458.969s, table=0, n_packets=700, n_bytes=56700, idle_age=2, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
      cookie=0xc1ab1b6d81e704aa, duration=1458.964s, table=0, n_packets=700, n_bytes=56700, idle_age=2, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
      cookie=0x85b196314727df66, duration=1458.981s, table=0, n_packets=2, n_bytes=84, idle_age=1403, priority=40000,arp actions=CONTROLLER:65535
      mininet>

        Attachments

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

          Activity

            People

            Assignee:
            bocon Brian O'Connor
            Reporter:
            hari hari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: