Re: [nox-dev] pytopology and datapathid

2008-07-22 Thread Dan Wendlandt
Hi Glen, in python you can do: from nox.lib.netinet.netinet import datapathid dp_long = 6 dp_obj = datapathid.from_host(dp_long) or, if your long is network byte ordered: dp_obj = datapathid.from_net(dp_long) you can check out src/nox/lib/netinet/datapathid.i for the SWIG file that defines o

[nox-dev] pytopology and datapathid

2008-07-22 Thread Glen Gibb
Hi all, I'm trying to use pytopology to extract topology information. I tried using the get_outlinks method, passing in a pair of longs representing two datapath_ids of two switches, and I receive the following error: Traceback (most recent call last): File "./nox/lib/util.py", line 132, in f

[nox-dev] Naming inconsistency

2008-07-22 Thread Glen Gibb
Hi all, Just wanted to point out that in pyrouting the class name is PyRouting, whereas in pytopology (studly caps) it is pytopology (all lowercase). Glen ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo

Re: [nox-dev] Flow establishment problem? NOX and/or OpenFlow

2008-07-22 Thread Glen Gibb
Ben Pfaff wrote: > Glen Gibb <[EMAIL PROTECTED]> writes: > > >> Ben Pfaff wrote: >> >>> Glen Gibb <[EMAIL PROTECTED]> writes: >>> >>> >>> I've got another issue here, this time to do with flow establishment. I'm trying to ping from one host to another through a bunc

Re: [nox-dev] invalid fd in poll loop

2008-07-22 Thread Martin Casado
Thanks for the pointer Glen. Invalid fd's were causing us some problems in the past as we had assumed twisted would remove the FD before closing (which turns out not to be the case). You're probably right that this should be downgraded to a dbg message. .martin On Jul 22, 2008, at 1:02 PM

[nox-dev] invalid fd in poll loop

2008-07-22 Thread Glen Gibb
Hi all, I receive notifications about "invalid fd in poll loop". Looking through the code I see this in src/lib/threads/impl.cc: if (pfd->revents & POLLNVAL) { // XXX Periodically we get an invalid fd from twisted. // Its unclear whether it is expected