There's nowhere in OpenFlow's flow-mod structure to specify the datapath.  It's 
just which datapath you send it to.  In POX, this means which Connection object 
you use to send the message.  There's information relevant to your question in 
the "OpenFlow in POX" section of the manual.  In particular, there's a 
"Connection Objects" subsection at the beginning and then a "Communicating with 
a Datapath" subsection later (these should probably be merged).

As far as installing rules early, the best you can do is to set them as soon as 
the switch connects to the controller -- in a ConnectionUp handler.  There's an 
example of this I think in forwarding.hub.

-- Murphy

On Mar 19, 2014, at 11:58 PM, Windhya Rankothge <windys...@gmail.com> wrote:

> Hi all,
> 
> I want to send OFPFlowMod message to a specific switch from the controller.. 
> I have read about OFPFlowMod message structure and saw that we can specify 
> the datapath.. But I am not sure how I can use this datapath to specify the 
> switch I want  to send the message.. Also I want to install rules on this 
> specific switch before data packet transmission happen in the network..
> 
> Highly appreciate your comments on this..
> 
> Best Regards,
>  
> Windhya Rankothge,
> Universitat Pompeu Fabra,
> Barcelona.

Reply via email to