[pox-dev] pox-dev Digest, Vol 25, Issue 17

shads s shasi0625 at gmail.com
Tue Apr 22 21:26:24 PDT 2014


Hey all

Is it possible to configure the servers in the ip_loadbalancer?
For example, suppose I have 2 servers wherein server 1 has a larger
capacity than server 2 and hence can handle increased traffic coming from
the clients compared to server 2.
I need to make this functionality work. Can anyone guide me?


On Fri, Apr 18, 2014 at 1:38 AM, <pox-dev-request at lists.noxrepo.org> wrote:

> Send pox-dev mailing list submissions to
>         pox-dev at lists.noxrepo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.noxrepo.org/listinfo.cgi/pox-dev-noxrepo.org
> or, via email, send a message with subject or body 'help' to
>         pox-dev-request at lists.noxrepo.org
>
> You can reach the person managing the list at
>         pox-dev-owner at lists.noxrepo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pox-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Where is the corresponding source code for the        following
>       Object. (Murphy McCauley)
>    2. Re: Where is the corresponding source code for the following
>       Object. (Shiyao Ma)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 16 Apr 2014 13:50:28 -0700
> From: Murphy McCauley <murphy.mccauley at gmail.com>
> To: Shiyao Ma <i at introo.me>
> Cc: pox-dev at lists.noxrepo.org
> Subject: Re: [pox-dev] Where is the corresponding source code for the
>         following Object.
> Message-ID: <778446FC-347A-4BC8-BB5D-E5EE3F5E2DA0 at gmail.com>
> Content-Type: text/plain; charset="iso-2022-jp"
>
> On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i at introo.me> wrote:
>
> > Hi.
> >
> > I am following
> https://github.com/noxrepo/pox/blob/carp/pox/forwarding/l2_learning.py#L121
> > I wonder where is the corresponding source for that event obj (The
> relevant class definition), so I can know what the event.attr stands for
> and how many attrs the event has.
>
> This is a PacketIn event handler, so the event object is a PacketIn.  You
> can either grep the codebase for "class PacketIn", or you can look up the
> PacketIn event in the POX manual.  It's in a subsection called "PacketIn"
> under "OpenFlow Events: Responding to Switches".
>
> > Also, I'd like to know the relevant class for the connection object.
> https://github.com/noxrepo/pox/blob/carp/pox/forwarding/l2_learning.py#L86
>
> The connection object is from a class called Connection.  You can search
> the codebase for "class Connection", or you can look it up in the manual.
>  It's in a subsection called "Connection Objects".
>
>
> For either or both of these, you could also use Python to find the answers
> for you.  For example, to find the class of the connection, object, insert
> the following near line 86 of l2_learning:
> import inspect
> print inspect.getsourcefile(type(connection)),
> inspect.getsourcelines(type(connection))[1]
>
> Et voila, it'll print out the file and line number of the class.  Or
> simply insert "help(connection)" to get the whole pydoc for it.  Or save it
> to a global variable, run the POX "py" module, and then do "help(<global
> variable name>)" from the commandline.
>
>
> Hope that helps.
>
> -- Murphy
>
> > Thanks and regards.
> > --
> >
> > ????????????????http://introo.me?
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140416/8b20c55c/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 17 Apr 2014 10:35:22 +0800
> From: Shiyao Ma <i at introo.me>
> To: Murphy McCauley <murphy.mccauley at gmail.com>
> Cc: pox-dev at lists.noxrepo.org
> Subject: Re: [pox-dev] Where is the corresponding source code for the
>         following Object.
> Message-ID:
>         <CAJQX3Dzvp-ccBVpySqEsx=
> 19EcAAqAyoNfb0QQ4AzxV2xbN-Jg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-2022-jp"
>
> Thanks and especially for the three methods.
>
>
> Regards.
>
>
> 2014-04-17 4:50 GMT+08:00 Murphy McCauley <murphy.mccauley at gmail.com>:
>
> > On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i at introo.me> wrote:
> >
> > Hi.
> >
> > I am following
> >
> https://github.com/noxrepo/pox/blob/carp/pox/forwarding/l2_learning.py#L121
> > I wonder where is the corresponding source for that event obj (The
> > relevant class definition), so I can know what the event.attr stands for
> > and how many attrs the event has.
> >
> >
> > This is a PacketIn event handler, so the event object is a PacketIn.  You
> > can either grep the codebase for "class PacketIn", or you can look up the
> > PacketIn event in the POX manual.  It's in a subsection called "PacketIn"
> > under "OpenFlow Events: Responding to Switches".
> >
> > Also, I'd like to know the relevant class for the connection object.
> >
> https://github.com/noxrepo/pox/blob/carp/pox/forwarding/l2_learning.py#L86
> >
> >
> > The connection object is from a class called Connection.  You can search
> > the codebase for "class Connection", or you can look it up in the manual.
> >  It's in a subsection called "Connection Objects".
> >
> >
> > For either or both of these, you could also use Python to find the
> answers
> > for you.  For example, to find the class of the connection, object,
> insert
> > the following near line 86 of l2_learning:
> > import inspect
> > print inspect.getsourcefile(type(connection)),
> > inspect.getsourcelines(type(connection))[1]
> >
> > Et voila, it'll print out the file and line number of the class.  Or
> > simply insert "help(connection)" to get the whole pydoc for it.  Or save
> it
> > to a global variable, run the POX "py" module, and then do "help(<global
> > variable name>)" from the commandline.
> >
> >
> > Hope that helps.
> >
> > -- Murphy
> >
> > Thanks and regards.
> > --
> >
> > ????????????????http://introo.me?
> >
> >
> >
>
>
> --
>
> ????????????????http://introo.me?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140417/0b6d4011/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> pox-dev mailing list
> pox-dev at lists.noxrepo.org
> http://lists.noxrepo.org/listinfo.cgi/pox-dev-noxrepo.org
>
>
> End of pox-dev Digest, Vol 25, Issue 17
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140423/05c88ad6/attachment.htm>


More information about the pox-dev mailing list