Thanks lucas for your attention saeedeh karami On Nov 8, 2014 12:35 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: Use of one function's variable in another function > (Lucas Brasilino) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 6 Nov 2014 22:39:55 -0300 > From: Lucas Brasilino <lr...@cin.ufpe.br> > To: saeedeh karami <saeedehkaram...@gmail.com> > Cc: pox-dev <pox-dev@lists.noxrepo.org> > Subject: Re: [pox-dev] Use of one function's variable in another > function > Message-ID: > < > cage5s_djokomcrzjos+-o0jkvaozehinwu0kkmm73wd-4hx...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hi, > > > How could i append, ABW variable to mylist in the _handle_PacketIn > > function?could you please give me advice > > That's a python language/oop issue. Just add "mylist" as your class > attribute within its constructor (like: self.mylist = []) and then > append ABW to it in _handle_portstats_received() method (like: > self.mylist.append(ABW) ). > > -- > Att > Lucas Brasilino > MSc Student @ Federal University of Pernambuco (UFPE) / Brazil > twitter: @lucas_brasilino > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > 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 32, Issue 6 > ************************************** >