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
|
|
@ -1 +0,0 @@
|
|||
Replace regexp Queue with: Group
|
||||
|
|
@ -1 +0,0 @@
|
|||
shun159@shun159.8967:1509553730
|
||||
|
|
@ -12,7 +12,14 @@ defmodule Openflow.Multipart.Group.Request do
|
|||
|
||||
def ofp_type, do: 18
|
||||
|
||||
def new(group_id \\ :all) do
|
||||
def new(options) when is_list(options) do
|
||||
%Request{
|
||||
xid: options[:xid] || 0,
|
||||
group_id: options[:group_id] || :all
|
||||
}
|
||||
end
|
||||
|
||||
def new(group_id) when is_integer(group_id) or is_atom(group_id) do
|
||||
%Request{group_id: group_id}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue