<div dir="ltr">Hello everybody,<br><br>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<br><br> self.macaddrtable = {}<br>
...<br> f_id=1<br> self.macaddrtable[f_id]={packet.src, packet.dst}<br> print self.macaddrtable<br> f_id=f_id+1<br><br>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. <br>
What I want is to save mac address only if its not in dictionary.<br>
</div>