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
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
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
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
>
(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
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
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
>
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