Hi,

It seems that setBarrier(false) for RPC: addFlow() does not work in Boron SR2. 
When we call addFlow() with setBarrier(false), the RPC doesn’t return until 
controller receive BARRIER REPLY message for scheduled barrier.

I tried to modify OutboundQueueEntry.java as below, then the RPC would return 
without waiting for barrier reply. Is there any potential problem with this 
modification ?

Original source code :

    private void checkCompletionNeed() {
        if (callback == null || (message instanceof PacketOutInput)) {
            completed = true;
            if (callback != null) {
                callback.onSuccess(null);
                callback = null;
            }
            committed = false;
        }
    }
Modified:


    private void checkCompletionNeed() {

        if (callback == null || (message instanceof PacketOutInput) || (message 
instanceof FlowModInput)) {

            completed = true;

            if (callback != null) {

                callback.onSuccess(null);

                callback = null;

            }

            committed = false;

        }

    }


Regards,
Huiching



--
本信件可能包含工研院機密資訊,非指定之收件者,請勿使用或揭露本信件內容,並請銷毀此信件。 This email may contain 
confidential information. Please do not use or disclose it in any way and 
delete it if you are not the intended recipient.
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to