How do I do that?? Do I have to write any other code for that??

On Wed, Apr 23, 2014 at 10:04 AM, <pox-dev-requ...@lists.noxrepo.org> wrote:

> Send pox-dev mailing list submissions to
>         pox-dev@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-requ...@lists.noxrepo.org
>
> You can reach the person managing the list at
>         pox-dev-ow...@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: Send packet back to input port of switch (Chanthan Hel)
>    2. Re: pox-dev Digest, Vol 25, Issue 17 (shads s)
>    3. Re: Prioritized servers in ip_loadbalancer (Murphy McCauley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 Apr 2014 10:50:02 +0700
> From: Chanthan Hel <hel.chantha...@gmail.com>
> To: Peter Peresini <peter.peres...@epfl.ch>
> Cc: pox-dev <pox-dev@lists.noxrepo.org>
> Subject: Re: [pox-dev] Send packet back to input port of switch
> Message-ID:
>         <
> caa5efmajoop0p_lcxrtjk-stigjc2myyvneyzwfnmrh4req...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-2022-jp"
>
> Dear all,
> I use this code
>   msg = of.ofp_packet_out(data = event.ofp) # send packet out by packetIn
> event
>   msg.actions.append(of.ofp_action_output(port = of.OFPP_IN_PORT)
>   event.connection.send(msg)
> It works,
> Thanks so much
>
>
>
> On Wed, Apr 23, 2014 at 12:46 AM, Peter Peresini <peter.peres...@epfl.ch
> >wrote:
>
> > Open flow requires you to use special ofpp_inport port number to send
> > traffic back!
> >
> > Peter
> > (sent from android device)
> > On Apr 22, 2014 6:19 PM, "Chanthan Hel" <hel.chantha...@gmail.com>
> wrote:
> >
> >> Let me try,
> >> Thx so much.
> >>
> >> On Tuesday, April 22, 2014, Shiyao Ma <i...@introo.me> wrote:
> >>
> >>> You may pastebin your sample code, or? an ofp_packet_out should do it.
> >>>
> >>>
> >>> 2014-04-22 23:40 GMT+08:00 Chanthan Hel <hel.chantha...@gmail.com>:
> >>>
> >>>> Dear all,
> >>>> As I know and according to my testing, when the ofswitch receive
> packet
> >>>> then controller does action on that packet and want to send it back
> to the
> >>>> incoming port, it always fails, we can not send packet back.
> >>>> So, if i want to send that packet back to the incoming port, how can
> we
> >>>> do??
> >>>> Chanthan
> >>>>
> >>>> --
> >>>> Mr. Chanthan Hel
> >>>> Electrical engineering, Faculty of Engineering,
> >>>> Chulalongkorn University (CU)
> >>>>
> >>>> *Phone: +66 81 456 84 27*
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>>
> >>> ????????????????http://introo.me?
> >>>
> >>
> >>
> >> --
> >> Mr. Chanthan Hel
> >> Electrical engineering, Faculty of Engineering,
> >> Chulalongkorn University (CU)
> >>
> >> *Phone: +66 81 456 84 27*
> >>
> >>
> >>
>
>
> --
> Mr. Chanthan Hel
> Electrical engineering, Faculty of Engineering,
> Chulalongkorn University (CU)
>
> *Phone: +66 81 456 84 27*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140423/3163a796/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 23 Apr 2014 09:56:24 +0530
> From: shads s <shasi0...@gmail.com>
> To: pox-dev <pox-dev@lists.noxrepo.org>,        Murphy McCauley
>         <murphy.mccau...@gmail.com>
> Subject: Re: [pox-dev] pox-dev Digest, Vol 25, Issue 17
> Message-ID:
>         <
> caj11o6ph_wtggwdc2+bkcyw2_ruubktxrx2d7omiaie5xlm...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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-requ...@lists.noxrepo.org>
> wrote:
>
> > Send pox-dev mailing list submissions to
> >         pox-dev@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-requ...@lists.noxrepo.org
> >
> > You can reach the person managing the list at
> >         pox-dev-ow...@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.mccau...@gmail.com>
> > To: Shiyao Ma <i...@introo.me>
> > Cc: pox-dev@lists.noxrepo.org
> > Subject: Re: [pox-dev] Where is the corresponding source code for the
> >         following Object.
> > Message-ID: <778446fc-347a-4bc8-bb5d-e5ee3f5e2...@gmail.com>
> > Content-Type: text/plain; charset="iso-2022-jp"
> >
> > On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i...@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...@introo.me>
> > To: Murphy McCauley <murphy.mccau...@gmail.com>
> > Cc: pox-dev@lists.noxrepo.org
> > Subject: Re: [pox-dev] Where is the corresponding source code for the
> >         following Object.
> > Message-ID:
> >         <CAJQX3Dzvp-ccBVpySqEsx=
> > 19ecaaqayonfb0qq4azxv2xbn...@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.mccau...@gmail.com>:
> >
> > > On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i...@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@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-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 22 Apr 2014 21:34:01 -0700
> From: Murphy McCauley <murphy.mccau...@gmail.com>
> To: shads s <shasi0...@gmail.com>
> Cc: pox-dev <pox-dev@lists.noxrepo.org>
> Subject: Re: [pox-dev] Prioritized servers in ip_loadbalancer
> Message-ID: <482d16fa-713a-4a70-a6c1-025f104cb...@gmail.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Override _pick_server() in the iplb class to not do it at random.
>
> -- Murphy
>
> On Apr 22, 2014, at 9:26 PM, shads s <shasi0...@gmail.com> wrote:
>
> > 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-requ...@lists.noxrepo.org>
> wrote:
> > Send pox-dev mailing list submissions to
> >         pox-dev@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-requ...@lists.noxrepo.org
> >
> > You can reach the person managing the list at
> >         pox-dev-ow...@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.mccau...@gmail.com>
> > To: Shiyao Ma <i...@introo.me>
> > Cc: pox-dev@lists.noxrepo.org
> > Subject: Re: [pox-dev] Where is the corresponding source code for the
> >         following Object.
> > Message-ID: <778446fc-347a-4bc8-bb5d-e5ee3f5e2...@gmail.com>
> > Content-Type: text/plain; charset="iso-2022-jp"
> >
> > On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i...@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...@introo.me>
> > To: Murphy McCauley <murphy.mccau...@gmail.com>
> > Cc: pox-dev@lists.noxrepo.org
> > Subject: Re: [pox-dev] Where is the corresponding source code for the
> >         following Object.
> > Message-ID:
> >         <CAJQX3Dzvp-ccBVpySqEsx=
> 19ecaaqayonfb0qq4azxv2xbn...@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.mccau...@gmail.com>:
> >
> > > On Apr 16, 2014, at 3:27 AM, Shiyao Ma <i...@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@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/20140422/f0ed7f29/attachment.htm
> >
>
> ------------------------------
>
> _______________________________________________
> pox-dev mailing list
> pox-dev@lists.noxrepo.org
> http://lists.noxrepo.org/listinfo.cgi/pox-dev-noxrepo.org
>
>
> End of pox-dev Digest, Vol 25, Issue 23
> ***************************************
>

Reply via email to