Re: [nox-dev] Get a new Datapath ID?

2011-09-07 Thread Aaron Rosen
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, ...

[nox-dev] Get a new Datapath ID?

2011-09-07 Thread Shrutarshi Basu
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 ins