Dears
Thanks Shinpei for your help.
I have fixed my issue but when I use this command 'ovs-ofctl dump-flows
mybridge' to get the flows deails it shows me this kind of error after
displaying few flows. Please note that when I disable writing metadata the
content is well displayed.
ovs-ofctl dump-flows mybridge
2016-03-01T10:03:56Z|00001|ofp_actions|WARN|invalid instruction ordering:
apply_actions must appear before write_metadata, for OpenFlow 1.1+
compatibility
2016-03-01T10:03:56Z|00002|ofp_util|WARN|OFPST_FLOW reply bad instructions
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=36.821s, table=0, n_packets=393, n_bytes=45952,
idle_age=0, priority=1 actions=CONTROLLER:65535
cookie=0x0, duration=31.338s, table=0, n_packets=0, n_bytes=0,
idle_age=31,
priority=1,in_port=1,vlan_tci=0x0001/0x1fff,dl_src=00:0c:29:7c:b6:8e
actions=resubmit(,1)
cookie=0x0, duration=31.330s, table=0, n_packets=0, n_bytes=0,
idle_age=31,
priority=1,in_port=6,vlan_tci=0x0001/0x1fff,dl_src=12:0c:33:7c:b6:6e
actions=resubmit(,1) ****parse error****
Thanks in advance.
2016-02-29 18:21 GMT-08:00 Shinpei Muraoka <[email protected]>:
> Hi,
>
> > In fact I am using a 64-bit VM under a 64-bit physical machine but the
> > problem is still pending.
> > Please advise how to fix it ?
>
> > inst = [parser.OFPInstructionWriteMetadata(metadata, 0xffffffff),
> parser.OFPInstructionGotoTable(3), ]
>
>
> The argument metadata of OFPInstructionWriteMetadata() should set integer
> of 8 bytes.
> Are you set what to the argument metadata of OFPInstructionWriteMetadata()?
> If you have set to metadata the value of non-integer, please you set to
> metadata the value of integer of 8 bytes.
>
>
> Thanks,
>
>
> On 2016年02月29日 14:57, David Gabriel wrote:
>
>> Dear Shinpei and all,
>>
>> Thanks for your answer.
>> In fact I am using a 64-bit VM under a 64-bit physical machine but the
>> problem is still pending.
>> Please advise how to fix it ?
>>
>> Best regards.
>>
>> Hi,
>>
>>
>> > inst =
>> [parser.OFPInstructionWriteMetadata(metadata, 0xffffffff),
>> parser.OFPInstructionGotoTable(3), ]
>> > mod =
>> parser.OFPFlowMod(datapath=self.current_datapath, priority=1,
>> match=match, instructions=inst,table_id=1)
>> > self.current_datapath.send_msg(mod)
>>
>> It was operating without problems. When trying the source in my
>> environment.
>> Output log is below.
>>
>> (s1)# ovs-ofctl -O openflow13 dump-flows s1
>> OFPST_FLOW reply(OF1.3) (xid=0x2)
>> cookie=0x0, duration=21.094s, table=0, n_packets=0, n_bytes=0,
>> priority=0 actions=write_metadata:0/0xffffffff,goto_table:3
>>
>>
>> I think the problem is not a source.
>> I am using a 64-bit environment.
>> If you are using the 32-bit environment, please try to operate in 64-bit
>> environment.
>>
>>
>> Thanks,
>>
>> On 2016年02月12日 07:10, David Gabriel wrote:
>> > Dears
>> >
>> > I am getting this error when I set the writeMatadata instruction.
>> > This is my code and below is the error I am getting.
>> >
>> > inst =
>> [parser.OFPInstructionWriteMetadata(metadata, 0xffffffff),
>> parser.OFPInstructionGotoTable(3), ]
>> > mod =
>> parser.OFPFlowMod(datapath=self.current_datapath, priority=1,
>> match=match, instructions=inst,table_id=1)
>> > self.current_datapath.send_msg(mod)
>> >
>> >
>> >
>> > File "/home/ubuntu/Documents/simpleSwitchv2.py", line 113, in
>> update_status_list
>> > self.current_datapath.send_msg(mod)
>> > File "/home/ubuntu/ryu/ryu/controller/controller.py", line 234, in
>> send_msg
>> > msg.serialize()
>> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_parser.py", line 205, in
>> serialize
>> > self._serialize_body()
>> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line
>> 2496, in _serialize_body
>> > inst.serialize(self.buf, offset)
>> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line
>> 2580, in serialize
>> > self.metadata_mask)
>> > File "/home/ubuntu/ryu/ryu/lib/pack_utils.py", line 25, in
>> msg_pack_into
>> > buf += struct.pack(fmt, *args)
>> > error: cannot convert argument to integer
>> >
>> >
>> > Please advise how to fix this issue
>> > Thanks in advance
>> > Regards
>> >
>> >
>> >
>>
>> ------------------------------------------------------------------------------
>> > Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> > Monitor end-to-end web transactions and take corrective actions now
>> > Troubleshoot faster and improve end-user experience. Signup Now!
>> > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> >
>> >
>> >
>> > _______________________________________________
>> > Ryu-devel mailing list
>> > [email protected] <mailto:
>> [email protected]>
>> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel