Hi,
I have tried.
match = parser.OFPMatch(in_port=in_port,
eth_type=ether_types.ETH_TYPE_8021Q, vlan_vid=vid, ipv4_src=src,
ipv4_dst=dst)
This also doesnt work. receives same error.
Looks like popvlan actions requires some kind of specific match.
Thanks
suresh
On Thu, May 10, 2018 at 5:21 PM, Yi Tseng <a86487...@gmail.com> wrote:
> Try add Ethernet type = VLAN to match
>
> knet solutions <knetsolutio...@gmail.com>於 2018年5月10日 週四,下午7:40寫道:
>
>>
>> Hi,
>>
>> Adding flow for VLAN Match with PopVlan action doesnt work for me. I see
>> the error in wireshark (
>>
>> OFPET_BAT_MATCH with OFPBMC_BAD_PREREQ code)
>>
>>
>>
>> code snippet
>> ==========
>>
>> actions.append(parser.OFPActionPopVlan())
>> actions.append(parser.OFPActionOutput(out_port))
>> vid = vlan_id | ofproto_v1_3.OFPVID_PRESENT
>> match = parser.OFPMatch(in_port=in_port, vlan_vid=vid, ipv4_src=src,
>> ipv4_dst=dst)
>> if msg.buffer_id != ofproto.OFP_NO_BUFFER:
>> self.add_flow(datapath, 1, 0, match, actions, msg.buffer_id)
>> else:
>> self.add_flow(datapath, 1, 0, match, actions)
>>
>>
>> what could be wrong?
>>
>>
>> --
>>
>> *Regards, *
>> *Knet solutions.*
>>
>> https://github.com/knetsolutions/KNet
>> http://knet-topology-builder.readthedocs.io/
>> http://knetsolutions.in/
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
>> _________________________________________
>> Ryu-devel mailing list
>> Ryu-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
> --
> Yi Tseng (a.k.a Takeshi)
> Taiwan National Chiao Tung University
> Department of Computer Science
> W2CNLab
>
> https://takeshi.tw
>
--
*Regards, *
*Knet solutions.*
https://github.com/knetsolutions/KNet
http://knet-topology-builder.readthedocs.io/
http://knetsolutions.in/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel