[pox-dev] Defining Dictionary in POX controller
Sayed Qaiser Ali Shah
11msitqshah at seecs.edu.pk
Sat Nov 9 10:35:26 PST 2013
Hello everybody,
I have defined dictionary in POX controller and I by the name addrtable and
I am saving two things in this dictionary i.e. Source mac and destination
mac. What I have done is
self.macaddrtable = {}
...
f_id=1
self.macaddrtable[f_id]={packet.src, packet.dst}
print self.macaddrtable
f_id=f_id+1
It is saving source mac and destination mac in the dictionary but the
problem is when f_id increases it then save same source and destination mac
again and again.
What I want is to save mac address only if its not in dictionary.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131109/3a35f0c7/attachment.htm>
More information about the pox-dev
mailing list