Re: [nox-dev] Nox module overwritten

2010-10-24 Thread Murphy McCauley
/pytutorial.py -- Correct ./nox/build/src/nox/coreapps/examples/pytutorial.pyc ./nox/build/src/nox/coreapps/examples/pytutorial.py -- correct Aaron On Sun, Oct 24, 2010 at 3:27 PM, James Murphy McCauley jam...@nau.edu wrote: You mention ./build/src/nox/coreapps/examples/pytutorial.py

Re: [nox-dev] [PATCH] support setting the binding IP address of TCP sockets for passive interfaces

2010-11-10 Thread Murphy McCauley
Ooops. I remade this patch pretty much the same way a couple weeks ago, but apparently forgot to apply it. Sorry to make you go to the effort! Thanks. I'll take care of it. -- Murphy On Nov 10, 2010, at 1:27 AM, Romain Lenglet wrote: Hi, This patch if for the zaku branch. This is a

Re: [nox-dev] Dependency package list for NOX installation

2010-11-10 Thread Murphy McCauley
The noxrepo wiki has some info (Debian packages that pull in requirements, fairly up to date lists of packages, etc.), but it's pretty much all aimed at zaku/destiny. There's a tutorial on the openflow site somewhere that I think had a package list for the old master branch. But I'm pretty

Re: [nox-dev] Actions Based on Counters

2010-11-14 Thread Murphy McCauley
Inline. On Nov 14, 2010, at 2:55 PM, kk yap wrote: Hi, Comment inline. Regards KK On 14 November 2010 09:51, Rohit Manohar rdman...@ncsu.edu wrote: Hi Please ignore the previous mail. We have decided to implement load distribution based on counters maintained by a switch for a

Re: [nox-dev] Error while running nox_core

2010-11-15 Thread Murphy McCauley
What distro are you using, and which version of twisted do you have installed? I have python-twisted-core 10.0.0-2ubuntu2, which I believe is the latest in Ubuntu 10.04. This function is defined in it (in the file /usr/lib/python2.6/dist-packages/twisted/internet/base.py). -- Murphy On Nov

Re: [nox-dev] Error while running nox_core

2010-11-15 Thread Murphy McCauley
/apt/progress/base.py But I do not get clue why that error is coming. Any help is appreciated. Thanks, Ramana. On Mon, Nov 15, 2010 at 11:27 PM, Murphy McCauley jam...@nau.edu wrote: What distro are you using, and which version of twisted do you have installed? I have python-twisted-core

Re: [nox-dev] Setting ToS bits (mod_flow)

2010-11-17 Thread Murphy McCauley
this flow. (Wireshark shows the tos bits being 0x00). Thanks, Aaron On Tue, Nov 16, 2010 at 3:39 PM, Murphy McCauley jam...@nau.edu wrote: So you are seeing that the switch receives the action correctly (that is, with the ToS modify action and the correct new ToS bits), but the packets

Re: [nox-dev] Question

2010-11-19 Thread Murphy McCauley
My first thought is that you should do this measurement outside of NOX, for example by sniffing the control connection. -- Murphy On Nov 19, 2010, at 10:44 AM, Omar El Ferkouss wrote: Hello, I developed a physical OpenFlow switch and I want to use Nox as a controller. I want that any

Re: [nox-dev] Checksum

2010-11-20 Thread Murphy McCauley
This is actually an OpenFlow question, and is answered in the OpenFlow specification (although not as clearly as it might be): Replace the existing IP source address with new value and update the IP checksum (and TCP/UDP checksum if applicable). -- Murphy On Nov 20, 2010, at 11:10 AM, Rohit

Re: [nox-dev] Adding Flows

2010-11-20 Thread Murphy McCauley
I'd suggest you open a second xterm or use tmux or screen to multiplex your current one. -- Murphy On Nov 20, 2010, at 11:25 AM, Rohit Manohar wrote: I want to add a flow. Where should I do it? I open a xterm for an openflow switch and run sechhan to connect it to a Nox-controller. If i

Re: [nox-dev] Xterm

2010-11-21 Thread Murphy McCauley
I assume you're using OpenFlowVMS or the old VM scripts. If you want to use a single xterm, use screen or tmux. Discussion of their use is really off-topic for this list. Both have man pages that you can reference as well as many websites that describe their use. But here's a short

Re: [nox-dev] Matching on NW_TOS doesn't seem to work?

2010-11-21 Thread Murphy McCauley
Do you have the OpenFlow wireshark plugin? I'd suggest monitoring the OpenFlow traffic from the controller to the switch and seeing if the match data in the flow mod looked right. -- Murphy On Nov 21, 2010, at 11:12 AM, Aaron Rosen wrote: Hmm, It seems like if I'm having trouble

Re: [nox-dev] Adding flows using python code.

2010-11-21 Thread Murphy McCauley
Yes, NOX can manipulate the flow table of a switch, for example by using the install_datapath_flow() method of components. A good example of this is in pyswitch.py, and you can find some additional information here: http://openflow.org/wk/index.php/GEC8Tutorial#Sending_OpenFlow_messages Your

Re: [nox-dev] TCP Server in NOX Component

2010-11-22 Thread Murphy McCauley
The problem is that NOX doesn't handle multiple threads in Python. The solution is to just scrap the thread. NOX already has a reactor running, so just set up your protocol and you should be good to go -- all you need is the following in the install() method: factory = Factory()

Re: [nox-dev] State variable of ofp_phy_port on port status change

2010-11-23 Thread Murphy McCauley
This actually seems like it might be a byte order problem, though it's sort of hard to believe it would have slipped by until now, so I'm sort of surprised. Are you seeing this in C++ or in Python? On x86? Can you send some sample code which shows the issue? -- Murphy On Nov 23, 2010, at

Re: [nox-dev] State variable of ofp_phy_port on port status change

2010-11-24 Thread Murphy McCauley
printed values of variables present in this structure by using printf function available in stdio.h. Regards, Sachin From: Murphy McCauley jam...@nau.edu To: sachin sharma sharon_sac...@yahoo.co.in Cc: nox-dev@noxrepo.org Sent: Wed, 24 November, 2010 2:36:12 AM Subject: Re: [nox

Re: [nox-dev] Parsing IP/TCP packet.

2010-11-25 Thread Murphy McCauley
All the packet objects (ethernet, ipv4, tcp, etc.) have a number of fields (generally set in their __init__()). For example, tcp packets have .srcport and .dstport among others. ipv4 objects have .srcip, .dstip, etc. Packet objects also have a .next field which contains their payload. This

Re: [nox-dev] Flow removed callback function input parameters.

2010-11-26 Thread Murphy McCauley
Responses inline. On Nov 25, 2010, at 9:29 PM, K Singh wrote: I was adding flow removed event in the pyswitch.py file. def install(self): inst.register_for_packet_in(packet_in_callback) inst.register_for_datapath_leave(datapath_leave_callback)

Re: [nox-dev] Disable line display - 00044|openflow-event|DBG:received packet-in event from 000000000001

2010-11-28 Thread Murphy McCauley
It's in openflow-event.cc, but you should also be able to just disable openflow-event module debug messages with something like the following: ./nox_core -v -v openflow-event:ANY:WARN The first -v turns on verbose mode in general (something much like -v ANY:console:DEBUG), the second -v

Re: [nox-dev] Installing microflow rules in a switch

2010-12-04 Thread Murphy McCauley
Have you looked at the switch or pyswitch components? These both implement a learning L2 switch. -- Murphy On Dec 3, 2010, at 11:59 PM, chintan sheth wrote: Hi all, I have a 3 switch and 2 host topology in my network. I would like to install rules in the switch so that it does mac

Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
The information on that page is long out of date. The noxrepo wiki (http://noxrepo.org/noxwiki) is much more in line with reality. The packages listed on that page are for Debian, and the NOX it has you fetch is no longer 0.6.0. Please try the following (copy/pasted from the noxrepo wiki),

Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
AM, Murphy McCauley wrote: The information on that page is long out of date. The noxrepo wiki (http://noxrepo.org/noxwiki) is much more in line with reality. The packages listed on that page are for Debian, and the NOX it has you fetch is no longer 0.6.0. Please try the following (copy

Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
still got that configure : error: could not link against ! Thanks Abhishek Majumdar On 12/6/2010 8:43 AM, Murphy McCauley wrote: The information on that page is long out of date. The noxrepo wiki (http://noxrepo.org/noxwiki) is much more in line with reality. The packages listed

Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
. Abhishek Majumdar On 12/6/2010 2:13 PM, Murphy McCauley wrote: Yeah, I think this will probably work. apt-get install libboost-dev might also do the trick (and not be overkill). -- Murphy On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote: I encountered the same configure: error

Re: [nox-dev] [PATCH] support passing the 64-bit cookie in send_flow_command from Python code

2010-12-08 Thread Murphy McCauley
I had only noticed this issue last week, and Kyriakos and I had just been talking about fixing it. Offhand, this looks good, so thanks for saving us the trouble. :) -- Murphy On Dec 8, 2010, at 1:52 AM, romain.leng...@berabera.info wrote: From: Romain Lenglet romain.leng...@berabera.info

Re: [nox-dev] 6633 routing error

2010-12-08 Thread Murphy McCauley
. Regards, Hasnat On Thu, Dec 9, 2010 at 8:46 AM, Murphy McCauley jam...@nau.edu wrote: Were you running any switches that were attempting to connect to it? -- Murphy On Dec 8, 2010, at 7:39 PM, Abhishek Majumdar wrote: Ok. But it was doing that for a long time. more than 30 mins

Re: [nox-dev] 6633 routing error

2010-12-08 Thread Murphy McCauley
also facing this issue. Regards, Hasnat On Thu, Dec 9, 2010 at 8:46 AM, Murphy McCauley jam...@nau.edu wrote: Were you running any switches that were attempting to connect to it? -- Murphy On Dec 8, 2010, at 7:39 PM, Abhishek Majumdar wrote: Ok. But it was doing that for a long

Re: [nox-dev] 6633 routing error

2010-12-09 Thread Murphy McCauley
terminal it said 1|nox|WARN:stream: closing connection due to timeout after 5 seconds in sending features request state Thanks Abhishek Majumdar On 12/08/2010 11:55 PM, Murphy McCauley wrote: (CCing the list again) I don't know much about OpenFlowVMS, so I can't help you too much

Re: [nox-dev] Error feedback from adding flows

2010-12-14 Thread Murphy McCauley
Python support for this has been added in destiny in commit a2efd049da9f0d0d8dc4e56dc1aaa64930c1d257 . You can now register_handler(Error_event, callback), and the handler is called with an event object having type, code, and data members. You should be able to apply the patch against zaku

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread Murphy McCauley
Welcome to nox-dev, Akbar. You should actually do this when the switches connect (in response to the datapath join event) rather than at NOX/component startup, as the switches won't have connected at that point. -- Murphy On Dec 16, 2010, at 3:19 AM, Syed Akbar Mehdi wrote: Hi, I am

Re: [nox-dev] ERR:Application 'python' description not found when running latest NOX

2010-12-17 Thread Murphy McCauley
-boun...@noxrepo.org [mailto:nox-dev-boun...@noxrepo.org] On Behalf Of Stephen Wong Sent: Friday, December 17, 2010 9:41 AM To: 'James Murphy McCauley' Cc: 'nox-dev' Subject: Re: [nox-dev] ERR:Application 'python' description not found when running latest NOX Hi Murphy, See attached

Re: [nox-dev] NOX Error

2011-01-12 Thread Murphy McCauley
I think type 3 code 0 is failure to add a flow because you already have too many, but you can look it up in the OpenFlow specification. The data that goes with an error depends on the error. In the case of failure to add a flow, I think it just returns the flow mod message to you (or at least

Re: [nox-dev] Running any of the netapp applications

2011-01-21 Thread Murphy McCauley
Yes, this is almost definitely a Python issue. A common cause for this is that Python has been (rather quietly) disabled because Twisted wasn't installed. In destiny, this is now an error rather than a warning. So the first thing you might want to do is check that you have Twisted installed

Re: [nox-dev] Installing NOX Zaku in Ubuntu 10.10

2011-01-25 Thread Murphy McCauley
Did you specifically upgrade autoconf to 2.68? I believe the latest in Ubuntu 10.10 is 2.67. I ask because I don't have time to look into this just now, but I believe downgrading to 2.67 will fix your problem. -- Murphy On Jan 25, 2011, at 5:40 PM, Ishaan Aggarwal wrote: Hello, I am new

Re: [nox-dev] Installing NOX Zaku in Ubuntu 10.10

2011-01-25 Thread Murphy McCauley
]: Leaving directory `/home/mind/m4-1.4.14/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mind/m4-1.4.14' make: *** [all] Error 2 Thank you Ishaan On Tue, 2011-01-25 at 18:08 -0800, Murphy McCauley wrote: Did you specifically upgrade autoconf to 2.68? I

Re: [nox-dev] Error in using Nox controller

2011-02-04 Thread Murphy McCauley
For #1: What operating system (distribution, version, etc.) are you building on? For #2: All you should need to do is run switch or pyswitch to get similar functionality. It will do learning switching between all ports on the switch. -- Murphy On Feb 4, 2011, at 1:18 PM, Vishal wrote: Hi

Re: [nox-dev] Error in using Nox controller

2011-02-04 Thread Murphy McCauley
Ah, Fedora 8... most of us are using recent versions of Ubuntu or Debian, so these are where most of our experience is. Without twisted installed, it was just trying to build without python. Now it seems to be building with python but running into the same problem as before (but with one of

Re: [nox-dev] Error in using Nox controller

2011-02-04 Thread Murphy McCauley
from twisted.python import log File /usr/lib/python2.5/site-packages/twisted/python/log.py, line 17, in module from zope.interface import Interface ImportError: No module named zope.interface Regards, Vishal On Fri, Feb 4, 2011 at 6:04 PM, Murphy

Re: [nox-dev] Error in using Nox controller

2011-02-07 Thread Murphy McCauley
packet of a every new flow from the controller Regards, Vishal On Fri, Feb 4, 2011 at 6:43 PM, Murphy McCauley jam...@nau.edu wrote: Well, that actually appears to be getting components loading. I'm not sure why such a hack was necessary, but... whatever. Let's pretend it was a good

Re: [nox-dev] nox-gui.py only shows one flow entry

2011-02-07 Thread Murphy McCauley
I pushed a fix to a related problem as 78949e67597709f9139ce8ac4790db75ea97bbdb (Fix switchstats with some switches). This accumulates table stats messages for the switchstats app. I think we just need to do the same thing for the GUI... -- Murphy On Feb 7, 2011, at 5:27 PM, Kyriakos

Re: [nox-dev] Path Computation at NOX

2011-02-17 Thread Murphy McCauley
As it ships, path computation in NOX is done by the routing component, which is a fairly standalone component that uses the algorithm described in the paper A New Approach to Dynamic All Pairs Shortest Paths by Camil Demetrescu. As far as I know, there's nothing in the the repo right now that

Re: [nox-dev] Problem with different instances of an attribute

2011-02-18 Thread Murphy McCauley
You say you tried to use the static modifier but it didn't work. Could you explain a bit more what you mean by didn't work? Didn't compile? Didn't have the expected results? Also, a short code snippet might be helpful. -- Murphy On Feb 17, 2011, at 4:37 PM, Ricardo Bennesby wrote: Hi

Re: [nox-dev] Problem with different instances of an attribute

2011-02-18 Thread Murphy McCauley
Murphy McCauley jam...@nau.edu You say you tried to use the static modifier but it didn't work. Could you explain a bit more what you mean by didn't work? Didn't compile? Didn't have the expected results? Also, a short code snippet might be helpful. -- Murphy On Feb 17, 2011, at 4:37 PM

Re: [nox-dev] Getting individual flow stats for an python app

2011-02-21 Thread Murphy McCauley
I believe that the flow stats event is Pythonized in both the zaku and destiny branches -- it's just that a helper method to make the callback easy to register is missing from zaku. A simple register_for_flow_stats_in method DOES exist in the destiny branch, though. So I'd suggest you either

Re: [nox-dev] Matching wildcard flows with different priorities

2011-02-21 Thread Murphy McCauley
The expected behavior is as you expect, not what you're observing. Are you building the match by hand, or are you using set_match() (in util) or something that calls it? If you're building it by hand, are you accounting for byte order in the wildcards field using htonl()? -- Murphy On Feb

Re: [nox-dev] NOX installation problem: openssl/md5.h is not found

2011-03-03 Thread Murphy McCauley
A couple of notes first: Most of us use Debian or Ubuntu, so our support for Fedora is spotty. :) And I don't think xerces is a dependency anymore. I think this may be an issue that I pushed a fix for in the destiny branch as commit 73fc9071b9d4f77b8314bf44fe4e5c6bccb480df. So you might want

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-06 Thread Murphy McCauley
I assume that pyswitch worked okay before the modification. I took a quick look at the code in NOX for sending this action and at your code below and they both look okay at first glance. Given that, my suggestion would be one of: 1) Install the OpenFlow Wireshark plugin and examine the flow mod

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-06 Thread Murphy McCauley
One last thought is that... you probably also want to have an output action as well as the VLAN action. It could be that the switch assumes there will be one. -- Murphy On Mar 6, 2011, at 9:09 AM, false wrote: Hi, I want setting VLAN_ID to OpenFlow by nox controller, so I edit

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-08 Thread Murphy McCauley
] -- I find headroom values is 130, 130 and 0 , what are these value mean?why does the last value is 0? Any suggestion will be helpful, Thank you. Yi-Shou --- 11/3/7 (一),Murphy McCauley jam...@nau.edu 寫道: 寄件者: Murphy McCauley jam

Re: [nox-dev] about Flowvisor config file

2011-03-20 Thread Murphy McCauley
I think you'll probably have better luck asking this on openflow-discuss. -- Murphy On Mar 20, 2011, at 8:22 AM, false wrote: Hi, I followed the manual that established an connection between in the NetFPGA based OF switch and NOX controller, and I got success in the action, and they

Re: [nox-dev] Installing datapath flow with pyswitch.py

2011-03-24 Thread Murphy McCauley
It's true that pyswitch does install flows with a timeout. However, there's another reason as well: NOX deletes all flows on a switch when the switch connects (in builtin/nox.cc). If it didn't, it's difficult to reason about what installing a particular flow would actually do (e.g., possibly

Re: [nox-dev] OpenDPI

2011-03-27 Thread Murphy McCauley
Well, NOX does not support the actual OpenDPI API. And deep packet inspection on a large scale is not really a strength of NOX (for one thing, the NOX controller is not typically directly in the path that data is on). That said, it is totally possible to do DPI with NOX by directing traffic

Re: [nox-dev] some explanations about the pyswitch code

2011-03-28 Thread Murphy McCauley
Hi. Hopefully I can shed some light... 1: The least significant bit in the most significant byte of an ethernet address indicates whether it's a multicast address. If it is, we don't attempt to learn it. 2: dst isn't a string. According to something like line 62, dst is… dst =

Re: [nox-dev] question integrating another app in pyswitch

2011-03-28 Thread Murphy McCauley
Using threads from within Python in NOX is basically out. You have a number of other options. If you just want to do something every second, maybe you can get away with using your socket code and just scheduling a timer callback (pyswitch does this to expire entries). You will have to be

Re: [nox-dev] question integrating another app in pyswitch

2011-03-28 Thread Murphy McCauley
is not allowed. I have a data structure which is updated in different call backs like openflow_datapath_join etc.. and this data structure needs to be sent to the remote server when the timer gives the call back. Regards, Vishal On Mon, Mar 28, 2011 at 10:32 AM, Murphy McCauley jam

Re: [nox-dev] Help with switch programming

2011-04-03 Thread Murphy McCauley
Hello. Here's a couple thoughts. #1: This is a switch configuration thing and depends on the switch. It's really outside the scope of both OpenFlow and NOX. As an example, if the switch is Open vSwitch, there are a couple ways to make it talk OpenFlow to a controller. The simpler one is

Re: [nox-dev] Help with switch programming

2011-04-04 Thread Murphy McCauley
ARP traffic at least), receive packet data from all connected switches (by watching for datapath_join and packet_in events), and send packet data out of a switch (using send_openflow()). -- Murphy Thanks Ishaan On 03/04/11 19:11, Murphy McCauley wrote: Hello. Here's a couple

Re: [nox-dev] error: no C++ to Python event converter

2011-04-26 Thread Murphy McCauley
Actually, I think this event should work and that there is an event converter for it. Can you share a code snippet that exhibits the problem? And tell us which branch you're using? -- Murphy On Apr 26, 2011, at 7:35 AM, karim torkmen wrote: Hi all, I am trying to use the authenticator

Re: [nox-dev] pybindings_storage

2011-04-26 Thread Murphy McCauley
The tuples in this list are Python conversions of Name from bindings_storage.hh in the form of (name, type, id). Type 1 is a LOCATION, type 2 is a HOST. I think these constants are in nox.netapps.bindings_storage.pybindings_storage.Name. id of -1 is the default. -- Murphy On Apr 26, 2011,

Re: [nox-dev] error: no C++ to Python event converter

2011-04-28 Thread Murphy McCauley
you add pyauthenticator as a dependency for your component (though I don't think this would cause exactly that error)? -- Murphy On Apr 27, 2011, at 1:16 AM, karim torkmen wrote: On 04/26/2011 07:46 PM, Murphy McCauley wrote: Actually, I think this event should work and that there is an event

Re: [nox-dev] pyrt|ERR:Python handler returned invalid Disposition

2011-04-28 Thread Murphy McCauley
, ihostname_, host_netid_, idle_timeout_, hard_timeout_, reason_); Can you please tell me what should I do exactly to have those entries to my handler like for example the case of register_packet_in which passes for example dpid etc. to the handler Thanks a lot. On 04/28/2011 06:59 PM, Murphy

Re: [nox-dev] NW_TOS can not work

2011-05-02 Thread Murphy McCauley
You just want to check the TOS field value of a packet you got from a Python packet_in handler? In that case, all that matters is ipv4.py (from the Python packet parsing library), and I'm pretty sure the TOS field works fine in it. So if you're seeing packet.next.tos is 0, then... I suspect it

Re: [nox-dev] some explanations about pyrouting memebers

2011-05-02 Thread Murphy McCauley
I wouldn't call myself an expert on the routing component, but... If you're not using nat_enforcer/pass False for check_nat, I think setup_flow() is basically just a flow_mod, possibly followed by a packet_out if you supply a buffer and no buffer ID. You can specify extra actions, but it

Re: [nox-dev] strange switches behaviour

2011-05-03 Thread Murphy McCauley
I think the most likely explanation is that the switch is failing open. If a switch can't connect to a controller for some amount of time, it may fall back into a mode where it tries to pass traffic itself in hopes of not just bringing everything to a dead stop. Are you using Open vSwitch?

Re: [nox-dev] matching fields

2011-05-05 Thread Murphy McCauley
In general, OpenFlow supports this feature by the wildcards field of ofp_match. So if you're on the C++ side, you may just set bits in there. There are constants that correlate to each of the match fields (e.g., match.wildcards = OFPFW_DL_DST would cause a switch to ignore the destination

Re: [nox-dev] host deathentication

2011-05-05 Thread Murphy McCauley
Maybe take a look at hosttracker. It raises events when a host is first seen, moves, or is lost. I don't think it actively checks for the host -- I think it just has like a five minute timer where if it doesn't see any packets from a host, it assumes it is gone. -- Murphy On Thursday, May

Re: [nox-dev] matching fields

2011-05-06 Thread Murphy McCauley
as an entry a flow not an attrs. My aim is to make the switch just decide on the source mac address and to ignore the destination mac address. Regards, karim On 05/06/2011 02:20 AM, Murphy McCauley wrote: In general, OpenFlow supports this feature by the wildcards field of ofp_match

Re: [nox-dev] Nox Application with dijkastra

2011-05-19 Thread Murphy McCauley
What do you mean by don't give any result? Do you have NOX working on topologies besides your partial mesh one? You'll need to have the topology component and probably the discovery component running, so please make sure they are (start nox with -v or -v -v). Your problem may be that the

Re: [nox-dev] unable to open info file './nox.info'.

2011-05-20 Thread Murphy McCauley
Off the top of my head, my guess is that you're running nox from a directory that you don't have write access to. Try something like... ./nox_core --info=~/nox.info -- Murphy On Friday, May 20, 2011 01:12:53 PM ahmad numan wrote: Hello I am new to NOX and just succeeded to install it in

Re: [nox-dev] strange send_openflow_packet behaviour

2011-05-25 Thread Murphy McCauley
Well, it doesn't look like you're actually passing the dict to send_openflow_packet(), so I suspect that it isn't the problem. Have you tried printing the contents of the dictionary at the start and then again at the end of this function, to see if it is changed inside sendPADI() or from

Re: [nox-dev] Nox Application with dijkastra

2011-05-25 Thread Murphy McCauley
have any real experience with it, but that's exactly what the spanning tree module is there to fix, isn't it? -- Murphy Feel free to correct me. I might just be super out of touch here. Regards KK On 25 May 2011 14:55, Murphy McCauley jam...@nau.edu wrote: If you wanted to compare against

Re: [nox-dev] The LLDP problem when using Extreme OpenFlow-enabled switch

2011-05-26 Thread Murphy McCauley
Hmm... I don't immediately know what the right thing to do in this situation is. But if it's to ignore the vlan (which doesn't immediately seem completely unreasonable), I think maybe the right approach is to replace that assert at the start of lldp_input_handler() with something like: if

Re: [nox-dev] Error message while running the nox controller

2011-05-27 Thread Murphy McCauley
Which version of NOX is this? Has it been modified at all? -- Murphy On Friday, May 27, 2011 05:58:16 AM ahmad numan wrote: Hello I configured a linux powered machine to run as OpenFlow switch (OVS) and connect it with out-of-band NOX controller (NOX controller was initialized by following

Re: [nox-dev] Error message while running the nox controller

2011-05-27 Thread Murphy McCauley
27, 2011 10:36:10 AM ahmad numan wrote: ./nox_core -V gives output *NOX 0.9.0(zaku)~full~beta (nox_core)* I download using git* * *git clone git://noxrepo.org/nox* Ahmed bilal On Fri, May 27, 2011 at 9:12 PM, Murphy McCauley jam...@nau.edu wrote: Which version of NOX

Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
What is the commandline you're using to run NOX? -- Murphy On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote: Hi, I tried to set up the example network as in OpenFlowVMS description page. I also installed and could run successfully NOX controller as well as I could run the

Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley jam...@nau.edu wrote: What is the commandline you're using to run NOX? -- Murphy On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote: Hi, I tried to set up the example network as in OpenFlowVMS description page. I

Re: [nox-dev] send_openflow_packet interface with buffer and ofp_action_header

2011-05-27 Thread Murphy McCauley
send_openflow_packet()'s API is kind of broken due to changes made since earlier versions of OpenFlow, and is very, very likely to be removed altogether in the next major release of NOX. There are other ways to do the same thing. If you look at the source of send_openflow_packet(), you'll see

Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
, Host 2) modprobe: FATAL: Could not load /lib/modules/2.6.27-rcl/modules.dep: No such file or directory Could you please clarify if this is what is causing the problem? Thanks, Daniel On Fri, May 27, 2011 at 8:33 PM, Murphy McCauley jam...@nau.edu wrote: If your topology has no loops

Re: [nox-dev] Unable to run components under 'netapps'

2011-05-27 Thread Murphy McCauley
Did you run the boot.sh script specifying only core apps? Perhaps even more importantly, it seems like you're using a very old version of NOX. Unless your switches don't support OpenFlow 1.0 or you have some other reason not to do so, I would suggest you start by upgrading to NOX destiny. --

Re: [nox-dev] nox_core command line options

2011-06-02 Thread Murphy McCauley
Probably the best resource is on the wiki: http://noxrepo.org/noxwiki/index.php/Using_NOX There is also a little about it in the rst-based manual. The source for this in the repository (doc/manual/source/using.rst), and there's an old version online at http://noxrepo.org/manual/using.html .

Re: [nox-dev] nox_core command line options

2011-06-02 Thread Murphy McCauley
:36, Murphy McCauley jam...@nau.edu wrote: Probably the best resource is on the wiki: http://noxrepo.org/noxwiki/index.php/Using_NOX There is also a little about it in the rst-based manual. The source for this in the repository (doc/manual/source/using.rst), and there's an old version

Re: [nox-dev] How to change a Flow destination in a nox component

2011-06-03 Thread Murphy McCauley
The switch component is an L2 learning switch, so it makes its decisions based on ethernet addresses. It makes this decision for every new flow, but only based on the ethernet address. Once the decision is made, an exact match flow is installed (if I recall correctly) that will direct that

Re: [nox-dev] Instance of an application

2011-06-03 Thread Murphy McCauley
Every NOX component (which is a class that inherits from Component) holds a pointer to its context in the ctxt field. This happens through Component's constructor. So within your component, you should be able to do something like... ... = ctxt-get_by_name(Some Other Component Name); .. and get

Re: [nox-dev] problem with setting actions

2011-06-04 Thread Murphy McCauley
Can you post your code? On Saturday, June 04, 2011 09:47:26 AM karim torkmen wrote: Hi all, I am using the method setup_flow(self, flow, dp, outport, bid, buf, timeout, actions, check_nat) i set the actions to [[0, [0, 1]], [5, 'd2:53:51:ce:72:b9']]. But it does not seem to work, and I get

Re: [nox-dev] nox on federa 14

2011-06-08 Thread Murphy McCauley
Hmm... I think I fixed this in the destiny branch. Are you using zaku? If so, would you see if destiny fixes this? -- Murphy On Wednesday, June 08, 2011 02:41:27 PM fernando farias wrote: There's some help about following error: checking for openssl/md5.h... yes checking for MD5_Init in

Re: [nox-dev] problem with get_switch_links

2011-06-09 Thread Murphy McCauley
The point of get_switch_links() using a callback instead of immediately returning the answer is that it doesn't immediately HAVE the answer. Rather than have get_switch_links() block for some indeterminate amount of time while it waits until it can answer, you register a callback which will be

Re: [nox-dev] Event triggered subprocess call

2011-06-10 Thread Murphy McCauley
So the confusing bit is that you're being lied to. The lambda function being referred to is actually on line 132 of coreapps/pyrt/pyoxidereactor.py. Inside subprocess.py, os.waitpid has been called and is blocking. This is where the stack trace leads. However, while waitpid is blocking, the

Re: [nox-dev] how to use Authentication component

2011-06-11 Thread Murphy McCauley
authenticator and pyauthenticator are components, so -- like all components -- NOX needs to know to load them and resolve their dependencies. The fix is easy: Add the pyauthenticator component as a dependency in your meta.json file (or simply specify pyauthenticator on the commandline

Re: [nox-dev] How to generate ICMP destination unreachable packet in NOX ?

2011-06-12 Thread Murphy McCauley
Try this: unreach_packet = unreach() # unreachable messages include the IP header and the first 8 bytes of the # packet that couldn't reach its destination unreach_packet.set_payload(packet.next.arr[0:packet.next.hl * 4 + 8]) unreach_icmp = icmp() unreach_icmp.type = 3 # unreachable

Re: [nox-dev] Regarding NOX support for openflow 1.1.0

2011-06-13 Thread Murphy McCauley
*We* don't have one yet, but such a thing exists elsewhere: http://noxrepo.org/pipermail/nox-dev/2011-May/007533.html -- Murphy On Monday, June 13, 2011 06:54:53 AM Anil Vishnoi wrote: Hi Team, Just wanted to know if you have any testing branch ( may be destiny) which has some initial

Re: [nox-dev] Issues in Ubuntu 10.04 with boost_filesystem-mt

2011-06-14 Thread Murphy McCauley
Do you have libboost-filesystem-dev installed? -- Murphy On Tuesday, June 14, 2011 02:25:47 PM Srini Seetharaman wrote: Hi I am trying to compile the latest head of NOX-Zaku on an Ubuntu 10.04 machine. I didn't receive any errors when I ran boot.sh. But, when I ran configure, I got the

Re: [nox-dev] Install_datapath_flow help

2011-06-17 Thread Murphy McCauley
me also in inserting the entry properly. Thank you very much. Regards, Giorgio Il 16/06/2011 21:01, Murphy McCauley ha scritto: Just a couple quick observations to help you get started here: If this flow is static, you shouldn't need to wait for a packet_in to install it. You

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Murphy McCauley
, Aaron On Mon, Jun 20, 2011 at 12:19 PM, Murphy McCauley jam...@nau.edu wrote: What NOX are you using? Your udp.py does not seem to be the one in zaku or destiny... -- Murphy On Sunday, June 19, 2011 03:34:20 PM Aaron Rosen wrote: Hello, I'm trying to send udp packets from

Re: [nox-dev] Using Discovery Module

2011-06-22 Thread Murphy McCauley
22, 2011 at 5:42 PM, Murphy McCauley jam...@nau.edu wrote: You say your DPID is actually 00:26:f1:3f:e4:80, but... I am guessing (and hoping) that you're wrong. I am guessing it's actually 06:d6:00:26:f1:3f:e4:80 (which is 492581376499901568, BTW). So I think you're hitting

Re: [nox-dev] Weird flow mod problem with destiny but not Zaku

2011-06-23 Thread Murphy McCauley
I was worried for a second, since the function responsible for packing actions has been significantly rewritten since zaku. But this bug actually only snuck in recently and is entirely the fault of accidental whitespace change. Sometimes you gotta love Python. :) It has been reverted now.

Re: [nox-dev] monitoring component

2011-06-25 Thread Murphy McCauley
It should be in src/nox/netapps/monitoring. If it's not, you're probably using the zaku branch and not the destiny branch. With modern versions of git, this is as easy as git checkout destiny if you haven't modified anything. I forget the syntax for older versions, but it should be on the

Re: [nox-dev] monitoring component

2011-06-25 Thread Murphy McCauley
Message - From: Murphy McCauley To: Dongwenxia Cc: nox-dev@noxrepo.org Sent: Saturday, June 25, 2011 3:12 PM Subject: Re: monitoring component It should be in src/nox/netapps/monitoring. If it's not, you're probably using the zaku branch and not the destiny branch

Re: [nox-dev] Error in running ./nox-gui.py

2011-06-27 Thread Murphy McCauley
What distribution are you using? You might try changing QtCore.pyqtSignal(str) to QtCore.Signal(str). -- Murphy On Monday, June 27, 2011 12:14:44 AM Tinny Zhu(Mingming) wrote: When I input './nox-gui.py', the following error is happened. Traceback (most recent call last): File

Re: [nox-dev] What's wrong? 00001|nox|ERR:Application 'spanning_tree' description not found

2011-06-29 Thread Murphy McCauley
I assume you're using NOX destiny or zaku (these are the two current branches of NOX). These branches now use a meta.json file to describe components. The spanning tree component was written for an older version of NOX that used a meta.xml file. As far as I can remember, the spanning tree

Re: [nox-dev] What's wrong? 00001|nox|ERR:Application 'spanning_tree' description not found

2011-06-29 Thread Murphy McCauley
it should just work. to switch to destiny, follow the instructions here: http://noxrepo.org/noxwiki/index.php/NOX_Installation#Installation (after git branch -a) On Wed, Jun 29, 2011 at 3:02 AM, Murphy McCauley jam...@nau.edu wrote: I assume you're using NOX destiny or zaku (these are the two

  1   2   3   4   >