Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-25 Thread ali ahmad
Thanks for the answers Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX controller From: jam...@nau.edu Date: Mon, 25 Jul 2011 00:10:28 -0700 CC: nox-dev@noxrepo.org To: aliahmad...@hotmail.com Responses in-line. On Jul 24, 2011, at 9:29 PM, ali ahmad wrote

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-25 Thread Murphy McCauley
a global variable called "inst" inside the __init__ method), you can access it from outside the object as well. -- Murphy > > At last, thanks a lot ,ur help was a great support in the progress of my work. > > Subject: Re: [nox-dev] how to manage multiple switches with t

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread ali ahmad
function def handle_datapath_join (self, dpid):? actually i want to use it inside other function as well At last, thanks a lot ,ur help was a great support in the progress of my work. Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX controller From: jam...@nau.edu Date

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread Murphy McCauley
in) > self.register_for_datapath_leave(self.handle_datapath_leave) > Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX > controller > From: jam...@nau.edu > Date: Sun, 24 Jul 2011 04:39:40 -0700 > CC: nox-dev@noxrepo.org > To: aliahmad...@hotmail.com >

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread ali ahmad
(self.handle_datapath_leave)Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX controller From: jam...@nau.edu Date: Sun, 24 Jul 2011 04:39:40 -0700 CC: nox-dev@noxrepo.org To: aliahmad...@hotmail.com No and no. You should really ready pyswitch.py -- as I said, it does most of what you need

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread Murphy McCauley
mailing list by accident. Please be sure to "reply all". On Jul 24, 2011, at 3:33 AM, ali ahmad wrote: > Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX > controller > From: jam...@nau.edu > Date: Sun, 24 Jul 2011 03:25:54 -0700 > CC: nox-dev@n

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread Murphy McCauley
actually keep track of dpids (by adding and removing them from a Python set would be my suggestion). This is only a handful of lines of code. -- Murphy On Jul 24, 2011, at 3:09 AM, ali ahmad wrote: > Subject: Re: [nox-dev] how to manage multiple switches with the help of NOX > controller >

Re: [nox-dev] how to manage multiple switches with the help of NOX controller

2011-07-24 Thread Murphy McCauley
If you want to do it yourself, just monitor datapath_join events. These are fired whenever a switch connects, and the event object holds the dpid of the switch. Store these in a list. Or you can just make use of the topology component, which does pretty much exactly this (along with some othe