[nox-dev] Error compiling NOX

2008-12-23 Thread Nikhil Handigol
I tried compiling freshly checked-out NOX on my Ubuntu (7.10) machine. I got the following error: authenticator.cc: In member function 'bool vigil::applications::Authenticator::rename(const std::string, const std::string, vigil::applications::Directory::Principal_Type,

Re: [nox-dev] Error compiling NOX

2008-12-24 Thread Nikhil Handigol
are you using? On Dec 23, 2008, at 11:13 PM, Nikhil Handigol wrote: I tried compiling freshly checked-out NOX on my Ubuntu (7.10) machine. I got the following error: authenticator.cc: In member function 'bool vigil::applications::Authenticator::rename(const std::string, const std::string

Re: [nox-dev] Race conditions in cooperative threads

2009-05-12 Thread Nikhil Handigol
Thanks, Teemu. Would the function start() not set t2 running the first time? -- Nikhil On Mon, May 11, 2009 at 11:55 PM, Teemu Koponen kopo...@nicira.com wrote: On May 11, 2009, at 23:31 , Nikhil Handigol wrote: I'm using cooperative threads in NOX to handle asynchronous SNMP calls. I'm

Re: [nox-dev] passing cmd-line params to a nox app

2009-06-24 Thread Nikhil Handigol
A question related to this topic - Is there a simple mechanism to send command line args to C++ modules? Is there an example app I could look up to understand how to do it? Thanks, Nikhil On Sun, Jan 11, 2009 at 11:47 PM, Martin Casado cas...@nicira.com wrote: In your application configure

[nox-dev] NOX compilation error

2010-07-12 Thread Nikhil Handigol
I recently tried a fresh NOX installation from the noxrepo git repo on Ubuntu 10.04. ./configure --with-python=yes fails with an error: configure: error: Could not link against ! The last few lines of the output are: checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC

Re: [nox-dev] NOX compilation error

2010-07-12 Thread Nikhil Handigol
work, could you post your config.log (or the tail end of it anyway)? -- Murphy On Mon, 2010-07-12 at 01:50 -0700, Nikhil Handigol wrote: I recently tried a fresh NOX installation from the noxrepo git repo on Ubuntu 10.04. ./configure --with-python=yes fails with an error

[nox-dev] Error compiling nox

2010-08-05 Thread Nikhil Handigol
I'm trying to compile nox destiny branch (commit no. 1df14bf6edbf2de1762dbfd27680e609094d6330) on debian lenny with gcc version 4.4.4. I get the following error: ../../../src/lib/json-util.cc: In function ‘vigil::json_object* vigil::json::load_document(const std::string)’:

Re: [nox-dev] Error compiling nox

2010-08-05 Thread Nikhil Handigol
On Thu, 2010-08-05 at 16:23 -0700, Nikhil Handigol wrote: I'm trying to compile nox destiny branch (commit no. 1df14bf6edbf2de1762dbfd27680e609094d6330) on debian lenny with gcc version 4.4.4. I get the following error: ../../../src/lib/json-util.cc: In function ‘vigil::json_object

[nox-dev] Debugging from nox crash log

2010-10-23 Thread Nikhil Handigol
My NOX controller seems to be segfaulting quite a bit of late. What is the best way to figure out the cause of the crash from the dump? Here's the segfault dump: Caught signal 11. 0xb7d8a169 64 (vigil::fault_handler(int)+0x49) 0xb7fa0400 2894416736 (__kernel_sigreturn+0x0) 0xb3b907bb

[nox-dev] Signal 6 due to std:bad_alloc

2010-10-25 Thread Nikhil Handigol
Hi, My controller (with custom-built modules) crashed with the following error: 00485|event-dispatcher|ERR:Event processing leaked an exception: std::bad_alloc terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Caught signal 6. /proc/self/maps: Cannot

[nox-dev] 'Link Queue' bug

2010-10-31 Thread Nikhil Handigol
Hi, I'm seeing errors of this kind in nox: 08908|bindings_storage|ERR:Serial queue 'Link Queue' has size = 46 and has not completed an operation in 63 seconds. This is likely a bug 08909|bindings_storage|ERR:Serial queue 'Link Queue' has size = 47 and has not completed an operation in 63

[nox-dev] Dependency package list for NOX installation

2010-11-10 Thread Nikhil Handigol
Is there a place where the dependency packages are listed for a clean installation of various release versions of NOX? More specifically, I'm trying to do a clean installation of NOX 0.4 (wire compatible with OpenFlow 1.0) on Ubuntu 10.04. Where can I find the list of packages that I need to

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

2010-11-14 Thread Nikhil Handigol
To close the thread the following worked for me for compiling NOX 0.4 (OpenFlow-1.0 wire-compatible version) on Ubuntu 10.04: g++ version: g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 packages: sudo apt-get install automake m4 libtool openssl libssl-dev libboost-dev libboost-filesystem-dev libxerces-c2-dev

Re: [nox-dev] Hosts with Same IP

2010-11-19 Thread Nikhil Handigol
Hi Rohit, I lead the Aster*x project at Stanford. What you want to do sounds very similar to Aster*x. Aster*x, formerly known as Plug-n-Serve, was demonstrated at Sigcomm 2009. You can find the abstract and video at: http://www.openflowswitch.org/wk/index.php/Videos#SIGCOMM_demos A couple of

Re: [nox-dev] Using pytopology

2010-12-14 Thread Nikhil Handigol
the picture. The functionality does appear scattered, but they are all there. Regards KK On 14 December 2010 02:50, Nikhil Handigol nikh...@cs.stanford.edu wrote: I want to write a nox python module that uses pytopology for topology discovery. I believe pytopology.i is the file I need

[nox-dev] pytopology patch

2011-01-13 Thread Nikhil Handigol
Hi, I have added 2 new functions to pytopology that makes it more useful/usable: * get_datapaths() : returns a list of all datapathids in the network * get_neighbors(dpid) : returns a list of neighbors of a given datapathid. I've attached a patch for the destiny branch (commit no.

Re: [nox-dev] pytopology patch

2011-01-14 Thread Nikhil Handigol
I haven't used git-am. What format does it expect the patch to be in? I usually do the following: $ cd nox $ patch -p1 path/to/patch/pytopology_destiny.patch -/\/ On Fri, Jan 14, 2011 at 10:39 AM, kk yap yap...@stanford.edu wrote: Hi Nikhil, That did not work. ykk@kk-alien:~$ git am

Re: [nox-dev] pytopology patch

2011-01-20 Thread Nikhil Handigol
Hi KK, Here's the new patch generated with git-format-patch. Please let me know if this works. -/\/ On Fri, Jan 14, 2011 at 10:53 AM, kk yap yap...@stanford.edu wrote: Please use git-format-patch. Regards KK On 14 January 2011 10:52, Nikhil Handigol nikh...@cs.stanford.edu wrote: I

Re: [nox-dev] Help Load-Balancer in openflow

2011-05-24 Thread Nikhil Handigol
Hi Alexander, The best way to approach it would be to start with a prototype in Mininet. The class on Advanced Topics in Networking at Stanford has a programming assignment that asks students to build a load-balancer using OpenFlow. That might be a good starting point. Here's the link to the

[nox-dev] flow_in.hh inclusion

2011-12-06 Thread Nikhil Handigol
Hi, I've written a new module, which I want to use to handle flow-in events. But #include authenticator/flow_in.hh' is throwing a compilation error: error: authenticator/flow_in.hh: No such file or directory I've written modules in the past without this issue, and I'm not able to figure out

Re: [nox-dev] attribute '_handleSigchld'

2012-01-16 Thread Nikhil Handigol
Hi Vjeko, I'm facing a similar issue. I recently upgraded twisted to 11.0 and found that an older (customized) version of nox crashes with the same error. Can you tell me to which class in '/usr/lib/python2.6/dist-packages/twisted/internet/base.py' should I add the _handleSigchld function?