Hi Shrutarshi, Each datapathID (dpid) received from a packet in event represents the switch that the packet came in on.
You just need to do something like this: def packet_in_callback(dpid, inport, reason, len, bufid, packet): flow = extract_flow(packet); inst.install_datapath_flow(dpid, .....) flow={} flow[w/e...] #install another flow_mod inst.install_datapath_flow(dpid, .....) Hope that helps, Aaron On Wed, Sep 7, 2011 at 11:30 PM, Shrutarshi Basu <ba...@cs.cornell.edu> wrote: > Hi, > I'm using NOX via the Python API. I would like to install multiple new data > path flows as part of a packet_in handler. I am wondering how I can get or > create a new data path ID, or can I reuse the ID that gets sent to the > handler? I haven't been able to find any example where a handler installs > multiple data path flows at once. > Thanks, > Basu > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev