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

2011-10-07 Thread Abdoulaye SYLLA
Hi dear friends, I just want ask you about some questions that i don't know how to do it. I must to do my research : *the interconnection between banking using cloud system*. Do you have some idea how to design it? Please i need your help 2011/10/7 Shrutarshi Basu > Hi KK, > I didn't quite und

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

2011-10-07 Thread Shrutarshi Basu
Hi KK, I didn't quite understand how a NAT box is supposed to operate (never made one before) but I managed to get it working using a logical IP just as you described below. I might add code for the situation in which the box gets its IP via DHCP but I think it's fine for now. Thanks, Basu On Mon,

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

2011-09-12 Thread Sergio Charpinel Jr.
Hi, I have the same question, but my scenario is different. If you have an openflow switch and want it to act like a router, you have to answer arp replies and you need to know each IP address assigned to each switch interface. If you don't, you have to include every IP of every interface of every

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

2011-09-12 Thread kk yap
Hi Shrutarshi, I am not sure why you would need to get the IP address on the switch so as to write a NAT application. The IP address assigned to the switch/NAT box can be logical (i.e., the controller knows about it and not the switch). The rewriting of the IP addresses, transport ports, etc. ar

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

2011-09-08 Thread Shrutarshi Basu
On Thu, Sep 8, 2011 at 10:31 AM, Nicholas Bastin wrote: > On Thu, Sep 8, 2011 at 09:56, Aaron Rosen wrote: > >> I'm not sure how you would go about obtaining the switches ip though >> nox. Though it think it should be possible to get when the switches >> join. Any reason you would need to do that

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

2011-09-08 Thread Nicholas Bastin
On Thu, Sep 8, 2011 at 09:56, Aaron Rosen wrote: > I'm not sure how you would go about obtaining the switches ip though > nox. Though it think it should be possible to get when the switches > join. Any reason you would need to do that? > The dp_desc of the switch *may* contain the IP address (no

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

2011-09-08 Thread Aaron Rosen
I'm not sure how you would go about obtaining the switches ip though nox. Though it think it should be possible to get when the switches join. Any reason you would need to do that? One thing I've done is set the dpid of each switch to the ip address of the switch (in hex padded with 0's). Also, t

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

2011-09-08 Thread Shrutarshi Basu
Ahh ok, that makes sense. Since the dpid represents the switch, is there some way to use it to get more information about the switch (like its IP)? It doesn't seem like information like this is in the packet. On Wednesday, September 7, 2011 at 11:35 PM, Aaron Rosen wrote: > Hi Shrutarshi, >

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