On Thu, 11 Oct 2012 21:54:28 -0300
Ramon Marques <[email protected]> wrote:
> I am trying to rewrite the simple_switch.py using openflow 1.2, but i can't
> get the packet in_port.
> In the parser of the OFPPacketIn class inside ofproto_v1_2_parser.py there
> is no attribute in_port.
> Where can I get the in_port when using ofproto 1.2?
You can put something like the following code in your packet_in handler:
for f in msg.match.fields:
if f.header == ofproto_v1_2.OXM_OF_IN_PORT:
in_port = f.value
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel