frenetic-lang/pyretic — pull request #23 by etanzapinsky (2014-01-02 05:11:52+00:00)
Title: Able to use modify() to change packets' srcport and dstport

Hey Pyretic team,

I was doing some work with Pyretic and I was trying to use the modify method to change the source and destination ports of the packet but it wasn't working. I looked through the ``pox_client`` and noticed that when installing the open flow actions it would only install an action to modify the source MAC or IP or the destination MAC or IP, but not the source or destination port. All I did to solve this problem was add lines to use the POX method to set the correct action if a source or destination port action was requested.

Best,
Etan Zapinsky