Jacob, I'm adding the openflowplugin-dev and l2switch-dev lists here
as those are probably the people that will know this topic the best.

Thanks,
JamO

On 02/07/2018 05:28 AM, Jacob Steadman wrote:
> Hi,
> 
>  
> 
> I’m writing a traffic monitoring application, and want certain flows to be 
> sent to the controller while still being
> forwarded to their intended destination. However the flows are only going to 
> the controller.
> 
>  
> 
> The code I’m using I have edited from the InitialFlowWriter class in the 
> l2switch application. I was expecting that the
> flowing code would add 2 actions, one to send to the controller, and one to 
> perform whatever action was initially intended:
> 
>  
> 
> actions.add(getSendToControllerAction());
> 
> if(isHybridMode) {
> 
>          actions.add(getNormalAction());
> 
> }
> 
>  
> 
>  
> 
> private Action getNormalAction() {
> 
>             Action normal = new ActionBuilder()
> 
>                     .setOrder(0)
> 
>                     .setKey(new ActionKey(0))
> 
>                     .setAction(new OutputActionCaseBuilder()
> 
>                             .setOutputAction(new OutputActionBuilder()
> 
>                                     .setMaxLength(0xffff)
> 
>                                     .setOutputNodeConnector(new 
> Uri(OutputPortValues.NORMAL.toString()))
> 
>                                     .build())
> 
>                             .build())
> 
>                     .build();
> 
>             return normal;
> 
>         }
> 
>  
> 
>  
> 
> However the flows are not being sent to their intended location, only to the 
> controller. Does anyone have an idea how to
> create the functionality I am expecting?
> 
>  
> 
> Thanks,
> 
> Jacob
> 
> 
> 
> _______________________________________________
> Discuss mailing list
> disc...@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/discuss
> 
_______________________________________________
L2switch-dev mailing list
L2switch-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/l2switch-dev

Reply via email to