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
------------------------------------------------------------------------------
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

Reply via email to