Uploaded image for project: 'ovsdb'
  1. ovsdb
  2. OVSDB-150

When delete port, output port list(for broadcast) has problem.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • unspecified
    • Other
    • None
    • Operating System: All
      Platform: All

    • 3136

      /ovsdb/utils/mdsal-openflow/src/main/java/org/opendaylight/ovsdb/utils/mdsal/openflow/InstructionUtils.java

      In function "removeOutputPortFromInstructions", when delete port it remove action in actionList and set index(var) to indexOf(action).
      then reorder the actionList's ActionKey from index to the end of the actionList.size.

      but It should be set ActionKey from 0(start) to the index.

      Now i attach debug log that function.

      2015-04-16 18:30:25,177 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | removeOutputPortFromInstructions() Node Connector ID is - Type=openflow: DPID=15691847565390 port=4 existingInstructions=[Instruction{getInstruction=ApplyActionsCase{getApplyActions=ApplyActions{getAction=
      Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=3, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:4], augmentations={}}, augmentations={}}, getOrder=1, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}]
      2015-04-16 18:30:25,178 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | isPortDeleted=true,
      OldActionList=
      Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=3, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}]

      2015-04-16 18:30:25,179 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | removeOutputPortFromInstructions() : applyAction ApplyActions [_action=[Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=3, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action [_action=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, _key=ActionKey [_order=2], _order=2, augmentation=[]]], augmentation=[]]

      2015-04-16 18:30:25,684 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | removeOutputPortFromInstructions() Node Connector ID is - Type=openflow: DPID=15691847565390 port=4 existingInstructions=[Instruction{getInstruction=ApplyActionsCase{getApplyActions=ApplyActions{getAction=[Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=5, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=4, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:4], augmentations={}}, augmentations={}}, getOrder=3, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:2], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:1], augmentations={}}, augmentations={}}, getOrder=1, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}]

      2015-04-16 18:30:25,684 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | isPortDeleted=true, OldActionList=[Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=5, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=4, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:2], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:1], augmentations={}}, augmentations={}}, getOrder=1, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, getOrder=0, augmentations={}}]

      2015-04-16 18:30:25,687 | DEBUG | pool-27-thread-1 | InstructionUtils | 364 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.0.3.Helium-SR3 | removeOutputPortFromInstructions() : applyAction ApplyActions [_action=[Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:6], augmentations={}}, augmentations={}}, getOrder=5, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:5], augmentations={}}, augmentations={}}, getOrder=4, augmentations={}}, Action{getAction=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:2], augmentations={}}, augmentations={}}, getOrder=2, augmentations={}}, Action [_action=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:1], augmentations={}}, augmentations={}}, _key=ActionKey [_order=3], _order=3, augmentation=[]], Action [_action=OutputActionCase{getOutputAction=OutputAction{getOutputNodeConnector=Uri [_value=openflow:15691847565390:3], augmentations={}}, augmentations={}}, _key=ActionKey [_order=4], _order=4, augmentation=[]]], augmentation=[]]

            Unassigned Unassigned
            jung33@gmail.com Seungho Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: