Fix to accept transaction_id to all message structs
This commit is contained in:
parent
bb74f3d8c4
commit
4803c61061
29 changed files with 118 additions and 34 deletions
|
|
@ -24,6 +24,7 @@ defmodule Openflow.FlowMod do
|
|||
def ofp_type, do: 14
|
||||
|
||||
def new(options \\ []) do
|
||||
xid = Keyword.get(options, :xid, 0)
|
||||
cookie = Keyword.get(options, :cookie, 0)
|
||||
cookie_mask = Keyword.get(options, :cookie_mask, 0)
|
||||
table_id = Keyword.get(options, :table_id, 0)
|
||||
|
|
@ -39,6 +40,7 @@ defmodule Openflow.FlowMod do
|
|||
instructions = Keyword.get(options, :instructions, [])
|
||||
|
||||
%FlowMod{
|
||||
xid: xid,
|
||||
cookie: cookie,
|
||||
cookie_mask: cookie_mask,
|
||||
priority: priority,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue