Hi Vinllen,
On 2015年06月01日 01:02, Vinllen Chen wrote:
> Hi, Dear all:
>
> I use the openflow13, ovs2.3 and ryu controller, and i send flow mod
> message from controller to ovs:
>
> "match":
> {
> "in_port" : "2",
> "vlan_vid" : "0"
> },
> "instructions":
> [
> {
> "apply":
> [
> {
> "actions":
> [
> {
> "set_field":
> {
> "vlan_vid":"11"
> }
> }
> ]
> }
> ]
> },
> {
> "goto":
> {
> "table":"mac"
> }
> }
> ]
> }
>
> It receive OFPBAC_BAD_SET_ARGUMENT through wireshark when i send the
> flow_mod message to ovs, but if i cut the apply-action, then i can send the
> flow_mod successfully.
OFPBAC_BAD_SET_ARGUMENT code of the error message shows that the value of
set_field action is invalid.
If you want to set vlan_vid by using set_field action, please set
OFPVID_PRESENT bit.
e.g.) To set vlan_vid with "11":
value = 11 | OFPVID_PRESENT(=0x1000)
Thanks,
Iwase
>
> Does anyone kowns the problem, i found the question without solution
> posted before at here[1]
>
> [1] http://comments.gmane.org/gmane.linux.network.openvswitch.general/7088
>
> Best regards,
> Vinllen
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel