For the uninitiated - I am asking a Python/SDN question. It is a programming question.
There isn't much literature on this and I didn't see it in the specification. I have built a Ryu controller based on the documentation and have it all working, but I have a rather simple problem:
How do you map the in_port numbers to actual port numbers? In my case, it is saying I have an in_port of 5. However, it's actually coming in to physical port 1/1/2 on my Dell 4112F-ON. There doesn't seem to be any correlation between the two.
If I want to control traffic on a per port basis, how do I know from which physical port the traffic came?
Edit: I know how to convert to a MAC address, but I haven't figured out a clean way to programatically determine the port # from the MAC address.