Hi Anil / Openflowplugin Dev's,

I try to delete the S3 and S4 Arp flows. Actually I am passing both the 
NodeID's to the delete operation. But its deleting one NodeID in Arp flow's 
(randomly) .

        arpFlowManager.pushFlow(new NodeId("openflow:3"), 
FlowAction.REMOVE_FLOW);
        arpFlowManager.pushFlow(new NodeId("openflow:4"), 
FlowAction.REMOVE_FLOW);

        else if(flowAction == FlowAction.REMOVE_FLOW) {

                       InstanceIdentifier<Flow> flowIID = InstanceIdentifier
                                               .builder(Nodes.class)
                                               .child(Node.class,
                                                      new 
NodeKey(nodeId)).augmentation(FlowCapableNode.class)
                                               .child(Table.class,
                                                      new 
TableKey(flowBuilder.getTableId()))
                                               .child(Flow.class, 
flowBuilder.getKey())
                                               .build();

            result = mdsal.delete(LogicalDatastoreType.CONFIGURATION, flowIID);
        }


Example:
mininet> dpctl dump-flows
*** s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x4, duration=866.052s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x4, duration=866.123s, table=0, n_packets=0, n_bytes=0, idle_age=866, 
priority=10000,arp actions=CONTROLLER:65535,NORMAL
*** s2 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2, duration=866.288s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x2, duration=866.292s, table=0, n_packets=0, n_bytes=0, idle_age=866, 
priority=10000,arp actions=CONTROLLER:65535,NORMAL
*** s3 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x3, duration=866.181s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x3, duration=866.23s, table=0, n_packets=0, n_bytes=0, idle_age=866, 
priority=10000,arp actions=CONTROLLER:65535,NORMAL
*** s4 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x1, duration=866.316s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535


But when I am calling NodeID's for 2 times, its Deleting both Switches Arp 
flows perfectly.

        arpFlowManager.pushFlow(new NodeId("openflow:3"), 
FlowAction.REMOVE_FLOW);
        arpFlowManager.pushFlow(new NodeId("openflow:4"), 
FlowAction.REMOVE_FLOW);
        arpFlowManager.pushFlow(new NodeId("openflow:3"), 
FlowAction.REMOVE_FLOW);
        arpFlowManager.pushFlow(new NodeId("openflow:4"), 
FlowAction.REMOVE_FLOW);

Example:
mininet> dpctl dump-flows
*** s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x4, duration=866.052s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x4, duration=866.123s, table=0, n_packets=0, n_bytes=0, idle_age=866, 
priority=10000,arp actions=CONTROLLER:65535,NORMAL
*** s2 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2, duration=866.288s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x2, duration=866.292s, table=0, n_packets=0, n_bytes=0, idle_age=866, 
priority=10000,arp actions=CONTROLLER:65535,NORMAL
*** s3 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x3, duration=866.181s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535
*** s4 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x1, duration=866.316s, table=0, n_packets=342, n_bytes=29070, 
idle_age=14, priority=9500,dl_type=0x88cc actions=CONTROLLER:65535

Kindly suggest us how to delete ARP flow without duplication of 2 entries.

Regards,
Karthikeyan.

::DISCLAIMER:: The contents of this e-mail and any attachment(s) are 
confidential and intended for the named recipient(s) only. E-mail transmission 
is not guaranteed to be secure or error-free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may 
contain viruses in transmission. The e mail and its contents (with or without 
referred errors) shall therefore not attach any liability on the originator or 
HCL or its affiliates. Views or opinions, if any, presented in this email are 
solely those of the author and may not necessarily reflect the views or 
opinions of HCL or its affiliates. Any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and / or publication of this 
message without the prior written consent of authorized representative of HCL 
is strictly prohibited. If you have received this email in error please delete 
it and notify the sender immediately. Before opening any email and/or 
attachments, please check them for viruses and other defects..
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to