Thanks Fujimoto for the info!
Best,
Jibran Ahmed
NUID: 001250589
> On Apr 9, 2017, at 8:26 PM, Fujimoto Satoshi
> wrote:
>
> Hi, Jibran
> Sorry for cutting in.
>
> FYI, in RYU, you can decode your OpenFlow message like this:
>
>
Hi, Jibran
Sorry for cutting in.
FYI, in RYU, you can decode your OpenFlow message like this:
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def _packet_in_handler(self, ev):
msg = ev.msg.to_jsondict()
print(json.dumps(msg, indent=4))
And you can get:
{
"OFPPacketIn": {
Thank you very much for the information Bill!
Jibran
> On Apr 9, 2017, at 3:19 PM, William Fisher wrote:
>
> The data field is the packet data for the Packet-In message in hex. I
> took the data snippet from your message (with python string escapes)
> and entered
The data field is the packet data for the Packet-In message in hex. I
took the data snippet from your message (with python string escapes)
and entered the following in a python 2.7 interpreter:
>>>
Hello Bill,
Thank you for your response! The output is very similar to our requirement!
Could you please tell me how the data field was populated?
Thanks once again!
Jibran
> On Apr 9, 2017, at 12:57 AM, William Fisher
> wrote:
>
> I'm not completely sure what
I'm not completely sure what you want to do. Do you want output like this?
type:PACKET_IN
xid: 0x
version: 0x04
msg:
buffer_id: NO_BUFFER
total_len: 0x0052
in_port: 0x0002
in_phy_port: 0x0002
metadata: