Re: [nox-dev] routing module

2011-09-02 Thread Christian Esteve Rothenberg
Hi Linbo, if you want to do traditional IP routing and forwarding on OpenFlow networks you may want to have a look at RouteFlow: https://sites.google.com/site/routeflow/ The second tutorial we are about to release demonstrates a four router network running OSPF: https://sites.google.com/site/rout

[nox-dev] [PATCH] set_match() in src/nox/lib/util.py says "invalid ethernet addr"

2011-09-02 Thread hiroyasu ohyama
Hi all Now I'm using the nox 0.9.0 compiled Aug 25. Under the specific condition, sorry I didn't narrow down it, set_match() method which is defined at src/nox/lib.util.py says "Invalid ethernet addr". This is occured by the fail of create_eaddr(), which is called by convert_to_eaddr(), because o

Re: [nox-dev] [PATCH] set_match() in src/nox/lib/util.py says "invalid ethernet addr"

2011-09-02 Thread Murphy McCauley
Thanks for the report. I think the problem you're seeing is one I fixed in the destiny branch last year. Assuming you're planning on switching to destiny eventually, you might want to manually apply the patch from destiny and see if it fixes it. http://noxrepo.org/cgi-bin/gitweb.cgi?p=nox;a=co

Re: [nox-dev] [PATCH] set_match() in src/nox/lib/util.py says "invalid ethernet addr"

2011-09-02 Thread hiroyasu ohyama
Thanks for your reply and dealing with my dust patch. I tried your following fix and I checked everything is OK. > http://noxrepo.org/cgi-bin/gitweb.cgi?p=nox;a=commitdiff;h=c3fa89a8e5c55e66efbcee3ee32523c9eb5d76c9 I'm touched by a kindness of this community. Thank you. De: H.OHYAMA 2011/9/2 Mu

[nox-dev] Creating a packet

2011-09-02 Thread chris oleke
Hi, I am trying to create a rate-limiting functionality in my application using the flow statistics that I obtain from the switch. I'm using the byte_count from the flows to match against a threshold value that when exceeded will be used to prompt flows to be dropped. Is it possible to create a p

Re: [nox-dev] routing module

2011-09-02 Thread Ricardo Bennesby
Hi Linbo. You can take a look on this link, it might helps: http://www.openflow.org/wk/index.php/OpenFlow_Tutorial#Create_Router This exercise of create a router to link two subnets helped on my group ongoing research. We are developing a NOX component that can do routing between two or more Net

Re: [nox-dev] Creating a packet

2011-09-02 Thread Murphy McCauley
Yes. From the flow stats event, you should be able to do something like: e.flows[0]["match"] to get the match dictionary to use with install_datapath_flow(), send_flow_command(), etc. for that flow. -- Murphy On Sep 2, 2011, at 3:16 PM, chris oleke wrote: > Hi, > > I am trying to create a rat

Re: [nox-dev] Creating a packet

2011-09-02 Thread chris oleke
Well it does make some sense and should be able to work but when I try it in my application like shown below, I get the following errors def handle_flow_stats_in(self, dpid, flows, more, xid): print "Flow stats in from datapath", longlong_to_octstr(dpid)[6:] temp = 0 for

Re: [nox-dev] Creating a packet

2011-09-02 Thread Murphy McCauley
Starting with the second error... NameError: global name 'bufid' is not defined This is because you're using the variable name "bufid", but there's no such variable. You have this in a packet-in handler because it's one of the parameters to the event handler. For a stats-in, there's obviously

Re: [nox-dev] Creating a packet

2011-09-02 Thread chris oleke
Thanks Murphy!! It works just like I wanted it to. Chris On Sat, Sep 3, 2011 at 6:50 AM, Murphy McCauley wrote: > Starting with the second error... > NameError: global name 'bufid' is not defined > > This is because you're using the variable name "bufid", but there's no such > variable. You ha