Fix to accept transaction_id to all message structs

This commit is contained in:
Eishun Kondoh 2018-03-22 23:49:03 +09:00
parent bb74f3d8c4
commit 4803c61061
29 changed files with 118 additions and 34 deletions

View file

@ -18,6 +18,7 @@ defmodule Openflow.Multipart.Flow.Request do
def ofp_type, do: 18
def new(options \\ []) do
xid = Keyword.get(options, :xid, 0)
table_id = Keyword.get(options, :table_id, :all)
out_port = Keyword.get(options, :out_port, :any)
out_group = Keyword.get(options, :out_group, :any)
@ -26,6 +27,7 @@ defmodule Openflow.Multipart.Flow.Request do
match = Keyword.get(options, :match, Openflow.Match.new())
%Request{
xid: xid,
table_id: table_id,
out_port: out_port,
out_group: out_group,